View source: R/verbatim_logical.R
verbatim_logical | R Documentation |
A yaml handler function that will cause logical vectors to emit true/false value instead of yes/no value
verbatim_logical(x)
x |
logical values to convert to |
To use pass into as.yaml as part of a handler arguement list like
list(logical=verbatim_logical)
.
Returns a vector of strings of either true
or false
of class
verbatim
.
Charles Dupont and James Goldie (jimjam-slam)
as.yaml
vector <- c(TRUE, FALSE, TRUE)
as.yaml(vector, handlers=list(logical=verbatim_logical))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.