View source: R/verbatim_logical.R
verbatim_logical | R Documentation |
A yaml handler function that causes logical vectors to emit
true
/false
instead of yes
/no
values.
verbatim_logical(x)
x |
logical vector to convert to |
Pass this function to as.yaml()
as part of the
handler
argument 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.