egnha / valaddin

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

Add base R predicate checkers #4

Closed egnha closed 7 years ago

egnha commented 7 years ago

In addition to purrr-based checkers such as vld_scalar_logical(), we should also include checkers based on the most useful predicates from base R (as a user convenience), e.g., vld_matrix() which would enforce a check based on the predicate is.matrix().

The method for implementing and documenting these functions should be highly automatic.

egnha commented 7 years ago

Implemented in 0c18a93c68429f208e05a8861f1ae7a0d809b836