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