r-lib / rlang

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

Special message if `min = max` in `check_number_*()` #1722

Open olivroy opened 3 months ago

olivroy commented 3 months ago

so that

check_number_whole(x = 2, min = 1, max = 1) 
#> must be a number equal to 1

If used programatically, this edge case can occur