optimize log output

This commit is contained in:
Patrick Schratz 2024-07-26 10:56:40 +02:00
commit 7d1324ac5b
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 3 additions and 2 deletions

View file

@ -117,7 +117,7 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
})
total_build_time <- round(Sys.time() - t1, 2)
cli::cli_alert("Execution time for {.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({

View file

@ -24,7 +24,7 @@ install_package_system_dependencies <- function(package_name,
cli::cli_alert("{.fun install_package_system_dependencies}: Removing {.path {local_clone_dir_single}}.")
total_build_time <- round(Sys.time() - t1, 2)
cli::cli_alert("Dependency installation time of package {.pkg {package_name[[1]]}}: {.strong {total_build_time} {units(difftime(Sys.time(), t1))}}.")
cli::cli_alert("Dependency installation time ({.pkg {package_name[[1]]}}): {.strong {total_build_time} {units(difftime(Sys.time(), t1))}}.")
unlink(sprintf("%s", local_clone_dir_single), recursive = TRUE, force = TRUE)
}