is_string_value | R Documentation |
Checks if the passed value is a single string.
is_string_value(
value,
allow_empty = TRUE,
allow_na = FALSE,
allow_null = FALSE
)
value |
the value to verify |
allow_empty |
If TRUE (default) accept an empty string. If FALSE, don't |
allow_na |
If TRUE, accepts a single NA value. If FALSE (default) don't |
allow_null |
If TRUE, accepts a single NULL value. If FALSE (default) don't |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_string_value(my_parameter))
# For check
if (qscheck::is_string_value(my_parameter)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.