R/yaml.load.R

Defines functions `yaml.load`

`yaml.load` <-
function(string, as.named.list = TRUE, handlers = NULL, error.label = NULL,
         eval.expr = getOption("yaml.eval.expr", FALSE),
         merge.precedence = c("order", "override"), merge.warning = FALSE) {

  string <- enc2utf8(paste(string, collapse = "\n"))
  eval.warning <- missing(eval.expr) && is.null(getOption("yaml.eval.expr"))
  merge.precedence <- match.arg(merge.precedence)

  .Call(C_unserialize_from_yaml, string, as.named.list, handlers, error.label,
        eval.expr, eval.warning, merge.precedence, merge.warning,
        PACKAGE="yaml")
}

Try the yaml package in your browser

Any scripts or data that you put into this service are public.

yaml documentation built on Sept. 11, 2024, 7:23 p.m.