to_yamlet.character | R Documentation |
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
.
## S3 method for class 'character'
to_yamlet(x, block = FALSE, ...)
x |
character |
block |
whether to write block scalars |
... |
ignored |
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).
length-one character, never NA, no names
Other to_yamlet:
to_yamlet.NULL()
,
to_yamlet.default()
,
to_yamlet.list()
,
to_yamlet.numeric()
,
to_yamlet.yamlet()
,
to_yamlet()
to_yamlet('foo')
to_yamlet(c('a','b'))
to_yamlet(c(a = 'a',b = 'b'))
to_yamlet(c(no = 'n', yes = 'y'))
to_yamlet(NA)
to_yamlet("NA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.