Configures a directory for batch file processing by
batch_config(fun, path, regexp = ".*", recurse = FALSE, ...)
A function to process each of the files.
A string of the path to the directory with the files for processing.
A string of a regular expression. Only non-hidden file names which match the regular expression will be batch processed.
A flag specifying whether to recurse into path's subdirectories.
Additional arguments passed to
An invisible character vector of the paths to the files to
that will be processed when
batch_run() is called.
batch_config() creates a hidden configuration file in path
Configuration is only possible if the directory does not already contain
a configuration file.
recurse = TRUE then the subdirectories
must also not contain configuration files.
The regexp must match at least one non-hidden file in the directory
recurse = TRUE in the directory or subdirectories.
Hidden files are excluded to prevent accidental modification of system files.