don't index package_name as list
This commit is contained in:
parent
2eed67c54a
commit
c0b8fd67f9
1 changed files with 6 additions and 5 deletions
|
|
@ -81,7 +81,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
|||
t1 <- Sys.time()
|
||||
cli::cli_h2("Building ({.pkg {package_name[1]}})")
|
||||
|
||||
cli::cli_alert("[{format(Sys.time(), format='%H:%M:%S')}] Building binaries for {.pkg {package_name[[1]]}} with tags {.field {tag}}.")
|
||||
cli::cli_alert("[{format(Sys.time(), format='%H:%M:%S')}] Building binaries for {.pkg {package_name[1]}} with tags {.field {tag}}.")
|
||||
|
||||
future::plan(future_strategy,
|
||||
workers = future_workers,
|
||||
|
|
@ -125,7 +125,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
|||
)
|
||||
|
||||
total_build_time <- round(Sys.time() - t1, 2)
|
||||
cli::cli_alert("Execution time ({.pkg {package_name[[1]]}}) ({length(tag)} tags): {.strong {total_build_time} {units(difftime(Sys.time(), t1))}}.")
|
||||
cli::cli_alert("Execution time ({.pkg {package_name[1]}}) ({length(tag)} tags): {.strong {total_build_time} {units(difftime(Sys.time(), t1))}}.")
|
||||
|
||||
cli::cli_h2("Uploading ({.pkg {package_name[1]}})")
|
||||
# out <- progressr::with_progress({
|
||||
|
|
@ -145,7 +145,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
|||
})
|
||||
|
||||
if (archive) {
|
||||
archive_package(package_name[[1]])
|
||||
archive_package(package_name[1])
|
||||
}
|
||||
return(invisible(TRUE))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue