hadley / assertthat

User friendly assertions for R
207 stars 29 forks source link

Is this still the best tool for this purpose? #78

Open jzadra opened 1 year ago

jzadra commented 1 year ago

I see that the last commit was 4 years ago. Has the functionality of this package been superseded by something else? I've used testthat for similar functionality outside of package dev, but it clearly isn't intended to be used that way.

orgadish commented 1 year ago

One partial alternative I recently came across is vctrs::vec_assert which works well with for type checking against any prototype.

orgadish commented 1 year ago

And I just found that rlang has an entire set of functions for type checking in R/standalone-type-chrck.R such as check_number_whole