Tests if there are any remaining files to process as listed
by batch_files_remaining()
.
batch_completed(path, failed = FALSE)
A flag specifying whether batch processing is complete.
By default, files that previously failed to process are excluded.
path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_completed(path)
#> [1] FALSE
batch_run(path, ask = FALSE)
batch_completed(path)
#> [1] TRUE
batch_cleanup(path)
unlink(file.path(path, "file1.csv"))