readd manual platform detection on rhel

This commit is contained in:
Patrick Schratz 2024-09-19 09:14:46 +02:00
commit 27afd602d4
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -26,11 +26,11 @@ install_package_system_dependencies <- function(package_name,
Sys.setenv(PKG_SYSREQS = TRUE)
Sys.setenv(PKG_SYSREQS_VERBOSE = TRUE)
# FIXME: https://github.com/r-lib/pak/issues/610
# if (grepl("rhel-9", pak::system_r_platform())) {
# Sys.setenv(PKG_SYSREQS_PLATFORM = "redhat-9")
# } else if (grepl("rhel-9", pak::system_r_platform())) {
# Sys.setenv(PKG_SYSREQS_PLATFORM = "redhat-8")
# }
if (grepl("rhel-9", pak::system_r_platform())) {
Sys.setenv(PKG_SYSREQS_PLATFORM = "redhat-9")
} else if (grepl("rhel-9", pak::system_r_platform())) {
Sys.setenv(PKG_SYSREQS_PLATFORM = "redhat-8")
}
if (deps_verbose) {
pak::local_install_deps(sprintf("%s", local_clone_dir_single))
} else {