Reads the values in the
configuration file created by batch_config()
.
batch_config_read(path)
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] "2024-11-01 16:04:24 UTC"
#>
#> $regexp
#> [1] "[.]csv$"
#>
#> $recurse
#> [1] FALSE
#>
#> $fun
#> function (x)
#> TRUE
#> <environment: 0x563db9b19f90>
#>
#> $dots
#> list()
#>
batch_cleanup(path, force = TRUE, remaining = TRUE)
unlink(file.path(path, "file1.csv"))