From 89588e4d49a471ab5dc8f6e25dfb3bb75770b6c4 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Thu, 21 Nov 2024 14:45:29 -0600 Subject: [PATCH] Update work-around to use utils::osVersion --- inst/tools/workaround.R | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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" }