Skip to content

Commit

Permalink
Check inputs in num_range()
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Oct 25, 2024
1 parent c9f30d3 commit 559ee6e
Show file tree
Hide file tree
Showing 2 changed files with 557 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/helpers-pattern.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ num_range <- function(prefix,
cross = FALSE,
vars = NULL) {
check_dots_empty()
check_bool(cross)
check_number_whole(width, allow_null = TRUE)

vars <- vars %||% peek_vars(fn = "num_range")

if (cross) {
Expand Down
Loading

0 comments on commit 559ee6e

Please sign in to comment.