eval.config.sections {configr}R Documentation

Get config file parameter sections

Description

Get config file parameter sections

Usage

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

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

[Package configr version 0.3.5 Index]