r-lib / rlang

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

Add `allow_infinite` to `check_number_whole()` #1588

Closed mgirlich closed 1 year ago

mgirlich commented 1 year ago

This is useful e.g. when wrapping APIs with pagination. I frequently want everything so I pass something like n = Inf. In case I don't want everything n definitely should be a whole number.