powered by
yaml
Converts a single character string representing a yaml boolean value into a logical value in R.
character
R
conv_str_logi( input, name = "", pos_logi = c("TRUE", "true", "True", "yes", "y", "Y", "on"), neg_logi = c("FALSE", "false", "False", "no", "n", "N", "off"), silent = TRUE )
input argument or the appropriate logical value.
input
logical
(character(1))
character(1)
(charcter(1))
charcter(1)
(character) vector of yaml values which should be treated as TRUE.
TRUE
(character) vector of yaml values which should be treated as FALSE.
FALSE
(logical(1)) if to suppress the messages and warnings.
logical(1)
conv_str_logi <- getFromNamespace("conv_str_logi", "teal.reporter") conv_str_logi("TRUE") conv_str_logi("True") conv_str_logi("off") conv_str_logi("n") conv_str_logi("sth")
Run the code above in your browser using DataLab