yaml (version 2.0.0)

yaml-package: Methods to convert R to YAML and back

Description

This package implements the libyaml YAML parser for R. There are also methods to convert R objects into YAML.

Arguments

Details

ll{ Package: yaml Type: Package Version: 2.0.0 Date: 2011-11-11 License: BSD } Use as.yaml to convert R objects into YAML and yaml.load or yaml.load_file to parse YAML into R objects.

References

YAML: http://yaml.org libyaml: http://pyyaml.org/wiki/LibYAML

Examples

Run this code
x <- data.frame(a=sample(1:100, 10), b=sample(letters, 10))
  as.yaml(x)
  yaml.load("foo: bar
junk:
  - stuff
  - blah")
yaml.load_file("foo.yml")

Run the code above in your browser using DataLab