powered by
If the yaml package is installed, use yaml::yaml.load() to read the data. If not, use the simple parser taml_load() instead.
yaml::yaml.load()
taml_load()
yaml_load( x, ..., handlers = NULL, envir = parent.frame(), use_yaml = loadable("yaml") )
An R object (typically a list).
A character vector of YAML data.
Arguments to be passed to yaml::yaml.load().
The environment in which R expressions in YAML are evaluated. To disable the evaluation, use envir = FALSE.
envir = FALSE
Whether to use the yaml package.
yaml_load("a: 1") yaml_load("a: 1", use_yaml = FALSE)
Run the code above in your browser using DataLab