egnha / valaddin

Functional input validation to make R functions more readable and robust
Other
33 stars 1 forks source link

Reassign numeric local checkers #12

Closed egnha closed 7 years ago

egnha commented 7 years ago

purrr::is_numeric and purrr::is_scalar_numeric are deprecated in purrr (>= 0.2.2.9000) since they don't check what you might naively think; in particular, purrr::is_numeric yields TRUE for factors.

_Replace these predicates by their base R equivalents in the definitions of vld_numeric and vld_scalar_numeric_.