View source: R/integer_value.R
is_integer_value | R Documentation |
Checks if the passed value is a single integer value (not type).
is_integer_value(
value,
min = NULL,
max = NULL,
inclusive_min = TRUE,
inclusive_max = TRUE,
allow_na = FALSE,
allow_null = FALSE
)
value |
the value to verify |
min |
minimum value to constraint the integer, inclusive |
max |
maximum value to constraint the integer, inclusive |
inclusive_min |
if TRUE (default) the min value is checked inclusive. If FALSE, the min value will be checked exclusive. |
inclusive_max |
if TRUE (default) the max value is checked inclusive. If FALSE, the max value will be checked exclusive |
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_integer_value(my_parameter))
# For check
if (qscheck::is_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.