View source: R/logical-assertions.R
assert_range | R Documentation |
Raises an assertion error when !all(a >= min & a <= max)
assert_range( obj, min, max, error_message = "{.arg obj} must be within [{.arg min}, {.arg max}]", error_class = NULL )
obj |
< |
min |
< |
max |
< |
error_message |
< |
error_class |
< |
Other logical-assertions:
assert_equal()
,
assert_greater_equal()
,
assert_greater()
,
assert_less_equal()
,
assert_less()
,
assert_not_equal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.