Validates that a numeric value falls within the specified range
check_range(x, min = NULL, max = NULL, inclusive = TRUE, arg_name = "value")Invisible TRUE if valid, throws error otherwise
Numeric value to check
Minimum allowed value (optional)
Maximum allowed value (optional)
Whether bounds are inclusive (default: TRUE)
Name of the argument for error messages
Other validate-utils:
check_directory(),
check_file(),
check_input(),
check_packages()