We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
range_validate()
1 parent 382bc23 commit 7c1cba5Copy full SHA for 7c1cba5
R/aaa_ranges.R
@@ -81,6 +81,12 @@ range_validate <- function(
81
if (!any(is_num)) {
82
cli::cli_abort("{.arg range} should be numeric.", call = call)
83
}
84
+ if (range[[1]] > range[[2]]) {
85
+ cli::cli_abort(
86
+ "The {.arg range} lower bound ({range[[1]]}) must not exceed upper bound ({range[[2]]}).",
87
+ call = call
88
+ )
89
+ }
90
91
# TODO check with transform
92
} else {
0 commit comments