eval.config.sections: Get config file parameter sections

Description Usage Arguments Value See Also Examples

View source: R/read.R

Description

Get config file parameter sections

Usage

1
2
3
4
eval.config.sections(
  file = Sys.getenv("R_CONFIGFILE_ACTIVE", "config.cfg"),
  ...
)

Arguments

file

File name of configuration file to read from. Default is the value of the 'R_CONFIGFILE_ACTIVE' environment variable (Set to 'config.cfg' if the variable does not exist and JSON/INI/YAML/TOML format only)

...

Arguments for read.config

Value

a character vector including the sections infomation of configure file or logical FALSE indicating that is not standard JSON/INI/YAML/TOML format file

See Also

eval.config.merge use this function to get all of sections of config file.

Examples

1
2
config.json <- system.file('extdata', 'config.json', package='configr')
eval.config.sections(config.json)

configr documentation built on July 17, 2020, 5:07 p.m.