debug
This commit is contained in:
parent
80a8db1ebb
commit
165e88a660
1 changed files with 21 additions and 8 deletions
|
|
@ -195,6 +195,11 @@ build_single_tag <- function(
|
|||
# bytes to MB in binary format
|
||||
file_size <- round(as.numeric(fs::file_size(sprintf("%s/%s_%s.tar.gz", dir_out_bin, package_name, tag))) / (1024^2), 2)
|
||||
|
||||
if (debug) {
|
||||
cli::cli_alert_warning("DEBUG: total_build_time: {total_build_time}")
|
||||
cli::cli_alert_warning("DEBUG: file_size: {file_size}")
|
||||
}
|
||||
|
||||
# skip DB connection if package already exists
|
||||
if (file.exists(sprintf("%s/%s_%s.tar.gz", dir_out_bin, package_name, tag))) {
|
||||
con <- DBI::dbConnect(RPostgres::Postgres(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue