ropensci-review-tools / pkgcheck

Check whether a package is ready for submission to rOpenSci's peer-review system
https://docs.ropensci.org/pkgcheck/
18 stars 6 forks source link

Test proposal #68

Open maelle opened 3 years ago

maelle commented 3 years ago

Thoughts?

mpadge commented 3 years ago

Yes, good and important ideas. I generally design tests to only call exported functions, and try to avoid direct testing of internal functions as much as possible. But this package, and all of the internal test functions in particular, is a good argument for direct testing of those. And designing and testing an epic-fail package is obviously also important.

maelle commented 3 years ago

As a check contributor, I'd find it less daunting if I could start with a really small test and then I'd include my check to the machinery (and it'd turn up in the less unit unit test).

mpadge commented 3 years ago

Addressing #40 and associated changes has gone some way towards this. All pkgchk_ functions now take the same much more standardised input. That input has not yet been documented, but that's very high on priority list, and once that's done, this issue can then be addressed much more cleanly. It's all getting there ...