zuyaml: Parse and Emit 'YAML' 1.2

Converts between 'YAML' 1.2 (<https://yaml.org/spec/1.2.2/>) and ordinary R objects using a bundled copy of the 'cyaml' C11 parser and emitter (<https://github.com/andrewmd5/cyaml>), so there is no system dependency and no runtime dependency beyond R itself. Ambiguous 'YAML' features are handled strictly and predictably: duplicate keys are refused by default, the 'YAML' 1.2 core schema is followed so that yes and no resolve as strings, and integers beyond double precision are preserved rather than silently rounded. A stream of documents and a sequence are different things, and the interface keeps them apart. Input size, nesting depth and the number of values materialised are all bounded, which makes the parser usable on untrusted input.

Package details

AuthorPedro Baltazar [aut, cre, cph], Andrew Sampson [ctb, cph] (author of the bundled cyaml library)
MaintainerPedro Baltazar <pedrobtz@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0
URL https://github.com/pedrobtz/zuyaml  https://pedrobtz.github.io/zuyaml/ 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("zuyaml")

Try the zuyaml package in your browser

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

zuyaml documentation built on Oct. 7, 2026, 5:08 p.m.