yaml_emit() converts one R object to a YAML document. yaml_emit_all()
converts a list of objects to a YAML stream.
Usage
yaml_emit(
x,
indent = 2L,
width = 80L,
document_start = FALSE,
document_end = FALSE
)
yaml_emit_all(
x,
indent = 2L,
width = 80L,
document_start = FALSE,
document_end = FALSE
)Details
Emission favours readable YAML over reproducing any particular source
formatting. Comments, quoting style and flow-versus-block choices are not
preserved; see vignette("zuyaml") for the conversions that do not round
trip.
There is no depth limit: x is an R object, already in memory. A list
nested deeper than the C stack allows raises R's stackOverflowError, and
output longer than an R string can hold (2^31 - 1 bytes) is an error with
code "limit_size".