use pak devel, test platform auto-detection
This commit is contained in:
parent
e0395b5509
commit
df583bcf37
1 changed files with 13 additions and 12 deletions
|
|
@ -22,15 +22,15 @@ install_package_system_dependencies <- function(package_name,
|
|||
}
|
||||
|
||||
cli::cli_alert("{.fun install_package_system_dependencies}: Installing R package dependencies for {.pkg {package_name[1]}} with tag {.field {tail(tag, 1)}}.")
|
||||
Sys.setenv(PKG_SYSREQS_PLATFORM = platform)
|
||||
# Sys.setenv(PKG_SYSREQS_PLATFORM = platform)
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue