| check_optional_bounded_integer_scalar | R Documentation |
Check optional integer scalar within bounds
check_optional_bounded_integer_scalar(
x,
lower = -Inf,
upper = Inf,
arg_name = deparse(substitute(x))
)
x |
Optional Numeric: Value to check. Must be |
lower |
Numeric scalar: Lower bound, inclusive. |
upper |
Numeric scalar: Upper bound, inclusive. |
arg_name |
Character: Argument name to use in error messages. |
Called for side effects. Throws an error if checks fail.
EDG
check_optional_bounded_integer_scalar(NULL)
check_optional_bounded_integer_scalar(5L, lower = 0, upper = 20)
# Throw error:
try(check_optional_bounded_integer_scalar(25, lower = 0, upper = 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.