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 b855323 commit e6d0065Copy full SHA for e6d0065
R/cloud.R
@@ -150,7 +150,13 @@ cloud_fetch_results <- function(job_name = cloud_job(pkg = pkg), pkg = ".") {
150
pb2 <- cli_progress_bar(format = "Extracting package results: {pb_percent}", total = sum(to_extract))
151
for (i in which(to_extract)) {
152
out_file <- out_files[[i]]
153
- utils::untar(out_file, exdir = out_dir)
+ files <- suppressWarnings(utils::untar(out_file, exdir = out_dir, list = TRUE))
154
+ if (length(files) == 0) {
155
+ # Retry downloading next time
156
+ unlink(out_file)
157
+ } else {
158
+ utils::untar(out_file, exdir = out_dir)
159
+ }
160
cli_progress_update(id = pb2)
161
}
162
cli_progress_done(id = pb2)
0 commit comments