Reads the values in the
configuration file created by batch_config()
.
batch_config_read(path)
A string of the path to the directory with the files for processing.
A named list of the configuration values.
path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_config_read(path)
#> $time
#> [1] "2022-06-18 00:15:19 UTC"
#>
#> $regexp
#> [1] "[.]csv$"
#>
#> $recurse
#> [1] FALSE
#>
#> $fun
#> function(x) TRUE
#> <environment: 0x7f96931302b8>
#>
#> $dots
#> list()
#>
batch_cleanup(path, force = TRUE, remaining = TRUE)
unlink(file.path(path, "file1.csv"))