Skip to content

Saves config in YAML format so that it can be read in again via loadConfig.

Usage

saveConfig(cfg, file = NULL)

Arguments

cfg

Input config which should be saved

file

A character string naming a file. If set to NULL the YAML output will be returned by the function.

See also

Author

Jan Philipp Dietrich

Examples

cfg <- list(input = c(data1 = "blub.tgz", data2 = "bla.tgz"), mode = "default")
saveConfig(cfg)
#> [1] "input: !<namedVector>\n  data1: blub.tgz\n  data2: bla.tgz\nmode: default\n"