We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063f94f commit b34aa44Copy full SHA for b34aa44
R/cloud.R
@@ -127,7 +127,13 @@ cloud_fetch_results <- function(job_name = cloud_job(pkg = pkg), pkg = ".") {
127
pb2 <- cli_progress_bar(format = "Extracting package results: {pb_percent}", total = sum(to_extract))
128
for (i in which(to_extract)) {
129
out_file <- out_files[[i]]
130
- utils::untar(out_file, exdir = out_dir)
+ files <- suppressWarnings(utils::untar(out_file, exdir = out_dir, list = TRUE))
131
+ if (length(files) == 0) {
132
+ # Retry downloading next time
133
+ unlink(out_file)
134
+ } else {
135
+ utils::untar(out_file, exdir = out_dir)
136
+ }
137
cli_progress_update(id = pb2)
138
}
139
cli_progress_done(id = pb2)
0 commit comments