What is the best practice for data validation in package development?

I'm working on a package and I want to add all kinds of validations for data as inputs, both for exported functions and internal functions.

Is it considered to be best practice to include functions from the assertr and validate packages?

If so, which one is better by your opinion?

1 Like

I think in general, the R community is fairly relaxed about this -- something due, no doubt, to R's lack of strong variable typing in the first place. Whether this is a good thing can be debated, of course, but nobody will care if you don't have asserts all over the place.

1 Like

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.