readConfig: Read a configuration file into a named list

Description Usage Arguments Value See Also Examples

Description

readConfig reads a configuration file of key value pairs and stores the result in a named list

Usage

1

Arguments

file

character value; path/name of the configuration file

Value

A named list of character values where the names are the keys from the configuration file and the values are the values from the configuration file.

See Also

readLines, strsplit

Examples

1
2
writeLines(c("COLOR=blue", "ANIMAL=dog"), "test")
readConfig("test")

dnegrey/spork documentation built on May 15, 2019, 9:40 a.m.