Read the YAML config file into a named list
Value
A named list of lists which corresponds to the loaded YAML config. See Details section for more info.
Details
String values are parsed to create appropriate types, for example, 'NA' would
be converted into NA
, 'true' into TRUE
, '10' into 10L
, etc.
Examples
read_user_cfg()
#> Warning: cannot open file '/home/runner/.config/R-dimex/config.yml': No such file or directory
#> Error in file(file, "rt", encoding = fileEncoding): cannot open the connection
if (FALSE) { # \dontrun{
read_user_cfg(file.path("path", "to", "config"), "conf.yml")
} # }