batch_files_remaining: Batch Files

View source: R/files.R

batch_files_remainingR Documentation

Batch Files

Description

Gets the names of the files that are remaining to be processed by batch_run().

Usage

batch_files_remaining(path, failed = FALSE)

Arguments

path

A string of the path to the directory with the files for processing.

failed

A logical scalar specifying how to treat files that previously failed to process. If FALSE (the default) failed files are excluded, if NA they are included and if TRUE they are only included.

Details

batch_completed() can be used to test if there are any files remaining.

Value

A character vector of the names of the remaining files.

See Also

batch_process() and batch_run()

Examples

path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_files_remaining(path)
batch_run(path, ask = FALSE)
batch_files_remaining(path)
batch_cleanup(path)
unlink(file.path(path, "file1.csv"))

poissonconsulting/batchr documentation built on June 10, 2025, 5:53 a.m.