Skip to content

Commit

Permalink
Add utils::osVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 21, 2024
1 parent 6deee3b commit b5b72bd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions inst/tools/workaround.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ if (.Platform$OS.type == "windows") {
.i <- "I"
} else {
.makevars <- file("src/Makevars", "wb")
if (file.exists("/etc/os-release")) {
.os <- readLines("/etc/os-release")
if (any(grepl("Pop!_OS", .os, fixed=TRUE))) {
.i <- "isystem"
} else {
.i <- "I"
}
if (any(grepl("Pop!_OS", utils::osVersion, fixed=TRUE))) {
.i <- "isystem"
} else {
.i <- "I"
}
Expand Down

0 comments on commit b5b72bd

Please sign in to comment.