Gets the names of the files that are remaining to be processed by
batch_run()
.
batch_files_remaining(path, failed = FALSE)
A character vector of the names of the remaining files.
batch_completed()
can be used to test if there are any
files remaining.
path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_files_remaining(path)
#> [1] "file1.csv"
batch_run(path, ask = FALSE)
batch_files_remaining(path)
#> character(0)
batch_cleanup(path)
unlink(file.path(path, "file1.csv"))