add debug support to add_to_package_index

This commit is contained in:
Patrick Schratz 2024-07-26 11:26:19 +02:00
commit 0f37c1407b
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 3 additions and 2 deletions

View file

@ -137,7 +137,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
cli::cli_h2("Updating package index for package ({.pkg {package_name[1]}})")
add_to_package_index(package_name[1])
add_to_package_index(package_name[1], debug = debug)
return(invisible(TRUE))
}

View file

@ -7,7 +7,8 @@ add_to_package_index <- function(
region = "eu-central-003",
bucket = "devxy-arm64-r-binaries",
codename = NULL, r_minor_version = NULL,
build_for_minor = FALSE) {
build_for_minor = FALSE,
debug = FALSE) {
codename <- set_codename(codename)
if (is.null(r_minor_version)) {
r_minor_version <- sub("R version (\\d+\\.\\d+).*", "\\1", R.Version()$version.string)