Thought it’d be highly worthwhile to start yet another Best Practice discussion, this time for code coverage which is far from straightforward when package developers wish to include/exclude particular (types of) files. A typical example is including some but not all
src files. The
tic package makes this task much easier than prior approaches (such as used in
covr itself). Should
tic become the Best Practice standard? What are the alternatives? In what ways might
tic restrict or constrain the development of alternative approaches?
And more generally: Would it be useful for
ropensci to start thinking about more structured production of
Best Practice documents? There could be so many useful instances of these that would make the lives of so many people so much easier, particularly given the decreasing utility of blind web searches in a world where things change so quickly (such as the changes brought about by
tic in this context). A great example is searching the web for best practice for code coverage of
R packages - a highly futile exercise for which an ideal antidote would be a central repo of Best Practice docs.