diff --git a/inst/tools/workaround.R b/inst/tools/workaround.R index b9a146c63..b87657e25 100644 --- a/inst/tools/workaround.R +++ b/inst/tools/workaround.R @@ -52,13 +52,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" }