to_yamlet.character: Coerce Character to Yamlet Storage Format
Description
Coerces character to yamlet storage format.
Named character is processed as a named list.
NA_character_ is is stored as unquoted NA
and read back as NA by as_yam.character.
Use quoted "NA" or 'NA' to store the literal string,
which will be read back as a string by as_yam.character.
Usage
# S3 method for character
to_yamlet(x, block = FALSE, ...)
Value
length-one character, never NA, no names
Arguments
x
character
block
whether to write block scalars
...
ignored
Details
If block is TRUE, an attempt will be made
to represent character strings as literal
block scalars if they contain
newlines (experimental in yamlet >= 0.8).
See Also
Other to_yamlet:
to_yamlet(),
to_yamlet.NULL(),
to_yamlet.default(),
to_yamlet.list(),
to_yamlet.numeric(),
to_yamlet.yamlet()