talira

R bindings to libyaml for reading and writing YAML

open sourceBSD-3-Clausefree

yaml is the R package for converting R data to YAML and back. It binds the libyaml YAML 1.1 parser and emitter: yaml.load() and read_yaml() parse YAML into R lists and vectors, and as.yaml() and write_yaml() write R objects out, with handlers for custom tags and options for formatting.

Problems it solves

  • read a YAML config file into my R script
  • write R data out as YAML
  • load an R Markdown or Shiny app config written in YAML

Features

  • parse YAML strings and files into R objects
  • write R lists, vectors and data frames as YAML
  • custom handlers for YAML tags
  • based on the libyaml YAML 1.1 parser and emitter