egnha / valaddin

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

Allow .error_class argument to be class or error condition #37

Closed egnha closed 7 years ago

egnha commented 7 years ago

This enhancement concerns the .error_class argument of firmly(). It would enable the creation of more nuanced error condition objects that could be used to:

Accordingly, rename .error_class to .error, and set its default value to NULL (which would mean using "simpleError" as condition subclass and the current call-expression transformation (#33)).

egnha commented 7 years ago

Implemented in quosures branch in commit 3160be7c472edd80844e21fa16d4ff1418248adc.