Closed topepo closed 4 years ago
I'm torn between encouraging these simple ones like validate_single_character(x)
vs vec_assert(x, character(), 1)
which I think is what would be encouraged (and is what that helper would use)
validate_outcomes_are_numeric(x)
- I do think this one would be helpful
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Some suggestions for things that will be commonly used, especially for checking arguments.
validate_outcomes_are_numeric(x)
validate_single_character(x)
validate_single_logical(x)
validate_single_integer(x)
validate_single_numeric(x)
validate_from_key(x, key)
(e.g. type is inc("numeric", "class", ...)
and check type versus key type)