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 handler argument list like list(logical = verbatim_logical).
as.yaml()
handler
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