r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
489 stars 131 forks source link

add vector methods for whole and decimal numbers in `standalone-types-check.R` #1714

Open EmilHvitfeldt opened 1 month ago

EmilHvitfeldt commented 1 month ago

In much the same way check_character() is the vector version of check_string(), and check_logical() is the vector version of check_bool(). It would be nice to have the same for check_number_whole() and check_number_decimal()

I would be happy to take stab at this

lionel- commented 1 month ago

With plural names like check_numbers_whole()? This seems reasonable, a PR is welcome! cc @hadley