powered by
A yaml handler function that will cause logical vectors to emit true/false value instead of yes/no value
verbatim_logical(x)
Returns a vector of strings of either true or false of class verbatim.
true
false
verbatim
logical values to convert to true or false.
Charles Dupont and James Goldie (jimjam-slam)
To use pass into as.yaml as part of a handler arguement list like list(logical=verbatim_logical).
list(logical=verbatim_logical)
as.yaml
vector <- c(TRUE, FALSE, TRUE) as.yaml(vector, handlers=list(logical=verbatim_logical))
Run the code above in your browser using DataLab