yaml12: Fast 'YAML' 1.2 Parser and Formatter

A fast, correct, safe, and ergonomic 'YAML' 1.2 parser and generator written in 'Rust'. Convert between 'YAML' and simple 'R' objects with full support for multi-document streams, tags, anchors, and aliases. Offers opt-in handlers for custom tag behavior and round-trips common 'R' data structures. Implements the 'YAML' 1.2.2 specification from the 'YAML' Language Development Team (2021) <https://yaml.org/spec/1.2.2/>. Proudly supported by Posit.

Version: 0.1.0
Depends: R (≥ 4.2)
Suggests: jsonlite, knitr, rmarkdown, testthat (≥ 3.0.0), waldo, withr
Published: 2025-12-11
DOI: 10.32614/CRAN.package.yaml12 (may not be active yet)
Author: Tomasz Kalinowski [aut, cre], Posit Software, PBC ROR ID [cph, fnd], Authors of the dependency Rust crates [cph] (See inst/AUTHORS and LICENSE.note for vendored Rust dependency authors and licenses.)
yaml12 author details
Maintainer: Tomasz Kalinowski <tomasz at posit.co>
BugReports: https://github.com/posit-dev/r-yaml12/issues
License: MIT + file LICENSE
URL: https://posit-dev.github.io/r-yaml12/, https://github.com/posit-dev/r-yaml12
NeedsCompilation: yes
SystemRequirements: Cargo (Rust's package manager), rustc >= 1.70.0, xz
Materials: README, NEWS
CRAN checks: yaml12 results

Documentation:

Reference manual: yaml12.html , yaml12.pdf
Vignettes: YAML in 2 Minutes: A Gentle Introduction for R Users (source, R code)
YAML Tags, Anchors, and Advanced Features with yaml12 (source, R code)

Downloads:

Package source: yaml12_0.1.0.tar.gz
Windows binaries: r-devel: yaml12_0.1.0.zip, r-release: not available, r-oldrel: yaml12_0.1.0.zip
macOS binaries: r-release (arm64): yaml12_0.1.0.tgz, r-oldrel (arm64): yaml12_0.1.0.tgz, r-release (x86_64): yaml12_0.1.0.tgz, r-oldrel (x86_64): yaml12_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=yaml12 to link to this page.