diff --git a/R/build_binaries.R b/R/build_binaries.R index 2a39142..1d81d14 100644 --- a/R/build_binaries.R +++ b/R/build_binaries.R @@ -13,6 +13,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL, local_clone_dir = "/tmp", platform = NULL, install_system_dependencies = TRUE, + deps_verbose = FALSE, debug = FALSE, force = FALSE, archive = TRUE) { @@ -79,7 +80,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL, if (install_system_dependencies) { tryCatch( { - install_package_system_dependencies(package_name, tag, platform, local_clone_dir) + install_package_system_dependencies(package_name, tag, platform, local_clone_dir, deps_verbose) }, # NB: here we need to use conditionMessage() to extract the actual error - as opposed to using $stderr for errors within the tryCatch used in the future* calls error = function(e) { diff --git a/R/install-deps.R b/R/install-deps.R index 731c39b..ee57d58 100644 --- a/R/install-deps.R +++ b/R/install-deps.R @@ -2,7 +2,8 @@ install_package_system_dependencies <- function(package_name, tag, platform = platform, - local_clone_dir) { + local_clone_dir, + deps_verbose = FALSE) { cli::cli_alert("{.fun install_package_system_dependencies}: Cloning package {.pkg {package_name[1]}} with tag {.field {tail(tag, 1)}}.") t1 <- Sys.time() @@ -24,7 +25,11 @@ install_package_system_dependencies <- function(package_name, Sys.setenv(PKG_SYSREQS_PLATFORM = platform) Sys.setenv(PKG_SYSREQS = TRUE) Sys.setenv(PKG_SYSREQS_VERBOSE = TRUE) - suppressMessages(pak::local_install_deps(sprintf("%s", local_clone_dir_single))) + if (deps_verbose) { + pak::local_install_deps(sprintf("%s", local_clone_dir_single)) + } else { + suppressMessages(pak::local_install_deps(sprintf("%s", local_clone_dir_single))) + } cli::cli_alert("{.fun install_package_system_dependencies}: Removing temporary clone dir at {.path {local_clone_dir_single}}.") diff --git a/man/build_binary_package.Rd b/man/build_binary_package.Rd index 4c64af4..798c5cc 100644 --- a/man/build_binary_package.Rd +++ b/man/build_binary_package.Rd @@ -14,6 +14,7 @@ build_binary_package( local_clone_dir = "/tmp", platform = NULL, install_system_dependencies = TRUE, + deps_verbose = FALSE, debug = FALSE, force = FALSE, archive = TRUE