Description Usage Arguments Details Value See Also Examples
Configures a directory for batch file processing by batch_run()
.
1 | batch_config(fun, path, regexp = ".*", recurse = FALSE, ...)
|
fun |
A function to process each of the files.
|
path |
A string of the path to the directory with the files for processing. |
regexp |
A string of a regular expression. Only non-hidden file names which match the regular expression will be batch processed. |
recurse |
A flag specifying whether to recurse into path's subdirectories. |
... |
Additional arguments passed to |
batch_config()
creates a hidden configuration file in path
named '.batchr.rds'.
The contents of the file can be read using
batch_config_read()
or updated using batch_reconfig_fun()
.
Configuration is only possible if the directory does not already contain
a configuration file.
If recurse = TRUE
then the subdirectories
must also not contain configuration files.
The regexp must match at least one non-hidden file in the directory
or if recurse = TRUE
in the directory or subdirectories.
Hidden files are excluded to prevent accidental modification of system files.
An invisible character vector of the paths to the files to
that will be processed when batch_run()
is called.
batch_process()
and batch_run()
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.