archive package after build

This commit is contained in:
Patrick Schratz 2024-09-01 13:30:43 +02:00
commit 28db7fc826
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 9 additions and 2 deletions

View file

@ -14,7 +14,8 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
platform = NULL,
install_system_dependencies = TRUE,
debug = FALSE,
force = FALSE) {
force = FALSE,
archive = TRUE) {
cli::cli_h2("Preparations ({.pkg {package_name}})")
codename <- set_codename(codename)
@ -113,6 +114,11 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
}
)
}, package_name, tag, future.seed = TRUE)
if (archive) {
archive_package(package_name[[1]])
}
# })
total_build_time <- round(Sys.time() - t1, 2)

View file

@ -15,7 +15,8 @@ build_binary_package(
platform = NULL,
install_system_dependencies = TRUE,
debug = FALSE,
force = FALSE
force = FALSE,
archive = TRUE
)
}
\description{