poissonconsulting / chk

An R package for developers to check user-supplied function arguments
https://poissonconsulting.github.io/chk/
Other
48 stars 4 forks source link

avoid double nesting of `` in for example `nrow(`x`)` #128

Open joethorley opened 6 months ago

joethorley commented 6 months ago
> chk::check_data(mtcars[FALSE,], nrow = c(1L, Inf))
Error in `check_dim()`:
! `nrow(`mtcars[FALSE, ]`)` must be between 1 and Inf, not 0.