From f5ce3578375ee72e1b00f04ad21d1d243dafbbcb Mon Sep 17 00:00:00 2001 From: pat-s Date: Mon, 23 Sep 2024 22:08:07 +0200 Subject: [PATCH] account for CURL_CA_BUNDLE on rhel --- R/install-deps.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/install-deps.R b/R/install-deps.R index 9545b73..cdb0bf1 100644 --- a/R/install-deps.R +++ b/R/install-deps.R @@ -28,8 +28,12 @@ install_package_system_dependencies <- function(package_name, # FIXME: https://github.com/r-lib/pak/issues/610 if (grepl("rhel-9", pak::system_r_platform())) { Sys.setenv(PKG_SYSREQS_PLATFORM = "redhat-9") + # otherwise pak::pkg_history() fails with 'error setting certificate verify locations' + Sys.setenv(CURL_CA_BUNDLE = "/etc/pki/tls/certs/ca-bundle.crt") } else if (grepl("rhel-8", pak::system_r_platform())) { Sys.setenv(PKG_SYSREQS_PLATFORM = "redhat-8") + # otherwise pak::pkg_history() fails with 'error setting certificate verify locations' + Sys.setenv(CURL_CA_BUNDLE = "/etc/pki/tls/certs/ca-bundle.crt") } if (deps_verbose) { pak::local_install_deps(sprintf("%s", local_clone_dir_single))