Description Usage Arguments Details Value See Also Examples
Updates the regular expression and/or recurse argument that were provided
when a directory was configured (using batch_config()
).
1 | batch_reconfig_fileset(path, regexp = NULL, recurse = NULL)
|
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. |
batch_reconfig_fileset()
is useful for including or excluding particular files.
It should be noted that batch_reconfig_fun()
does not alter the
configuration time.
In order to process previously failed files batch_run()
should be called with failed = NA
or failed = TRUE
.
An invisible character vector of the paths to the files remaining to be processed.
batch_process()
and batch_config()
1 2 3 4 5 6 7 8 | path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_config_read(path)
batch_reconfig_fileset(path, regexp = "file\\d+[.]csv$")
batch_config_read(path)
batch_cleanup(path, force = TRUE, remaining = TRUE)
unlink(file.path(path, "file1.csv"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.