yaml_load | R Documentation |
If the yaml package is installed, use yaml::yaml.load()
to read the
data. If not, use the simple parser taml_load()
instead.
yaml_load(
x,
...,
handlers = NULL,
envir = parent.frame(),
use_yaml = loadable("yaml")
)
x |
A character vector of YAML data. |
... , handlers |
Arguments to be passed to |
envir |
The environment in which R expressions in YAML are evaluated. To
disable the evaluation, use |
use_yaml |
Whether to use the yaml package. |
An R object (typically a list).
R expressions in YAML will be returned as expressions when they are
not evaluated. This is different with yaml::yaml.load()
, which returns
character strings for expressions.
yaml_load("a: 1")
yaml_load("a: 1", use_yaml = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.