Validates that all elements of a numeric value fall within a specified range.
Usage
require_between(
restriction,
lower = -Inf,
upper = Inf,
exclusive_lower = FALSE,
exclusive_upper = FALSE
)Details
Non-numeric input fails with a type error. NA elements are
skipped; chain require_no_na() to reject them.
See also
Other value checks:
require_negative(),
require_one_of(),
require_positive(),
require_unique()