batch_completed: Batch Completed?

View source: R/completed.R

batch_completedR Documentation

Batch Completed?

Description

Tests if there are any remaining files to process as listed by batch_files_remaining().

Usage

batch_completed(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

By default, files that previously failed to process are excluded.

Value

A flag specifying whether batch processing is complete.

See Also

batch_process()

Examples

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

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