archive package after build
This commit is contained in:
parent
c6850b4112
commit
28db7fc826
2 changed files with 9 additions and 2 deletions
|
|
@ -14,7 +14,8 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
||||||
platform = NULL,
|
platform = NULL,
|
||||||
install_system_dependencies = TRUE,
|
install_system_dependencies = TRUE,
|
||||||
debug = FALSE,
|
debug = FALSE,
|
||||||
force = FALSE) {
|
force = FALSE,
|
||||||
|
archive = TRUE) {
|
||||||
cli::cli_h2("Preparations ({.pkg {package_name}})")
|
cli::cli_h2("Preparations ({.pkg {package_name}})")
|
||||||
codename <- set_codename(codename)
|
codename <- set_codename(codename)
|
||||||
|
|
||||||
|
|
@ -113,6 +114,11 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}, package_name, tag, future.seed = TRUE)
|
}, package_name, tag, future.seed = TRUE)
|
||||||
|
|
||||||
|
if (archive) {
|
||||||
|
archive_package(package_name[[1]])
|
||||||
|
}
|
||||||
|
|
||||||
# })
|
# })
|
||||||
|
|
||||||
total_build_time <- round(Sys.time() - t1, 2)
|
total_build_time <- round(Sys.time() - t1, 2)
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@ build_binary_package(
|
||||||
platform = NULL,
|
platform = NULL,
|
||||||
install_system_dependencies = TRUE,
|
install_system_dependencies = TRUE,
|
||||||
debug = FALSE,
|
debug = FALSE,
|
||||||
force = FALSE
|
force = FALSE,
|
||||||
|
archive = TRUE
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
\description{
|
\description{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue