Skip to content

Commit

Permalink
Update standalone-types-check.R
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Aug 15, 2024
1 parent a34d831 commit 2b18035
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/standalone-types-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,14 @@ check_character <- function(x,
}
}

what <- "a character vector"
if (min_length > 0) {
what <- paste0(what, "of length greater or equal to", min_length)
}

stop_input_type(
x,
"a character vector",
what,
...,
allow_na = FALSE,
allow_null = allow_null,
Expand Down

0 comments on commit 2b18035

Please sign in to comment.