Learn R Programming

batchr (version 0.0.2)

batch_config_read: Read Configuration File

Description

Reads the values in the configuration file created by batch_config().

Usage

batch_config_read(path)

Arguments

path

A string of the path to the directory with the files for processing.

Value

A named list of the configuration values.

See Also

batch_process() and batch_log_read()

Examples

Run this code
# NOT RUN {
path <- tempdir()
write.csv(mtcars, file.path(path, "file1.csv"))
batch_config(function(x) TRUE, path, regexp = "[.]csv$")
batch_config_read(path)
batch_cleanup(path, force = TRUE, remaining = TRUE)
unlink(file.path(path, "file1.csv"))
# }

Run the code above in your browser using DataLab