View source: R/integer_value.R
is_positive_integer_value | R Documentation |
Checks if the value is a single positive integer value (not type)
is_positive_integer_value(value, allow_na = FALSE, allow_null = FALSE)
value |
the value to verify |
allow_na |
if TRUE, accepts a NA value |
allow_null |
if TRUE, accepts a NULL value |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_positive_integer_value(my_parameter))
# For check
if (qscheck::is_positive_integer_value(my_parameter)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.