rOpenSci | An Example of the DRY/DAMP Principles for Package Tests

rOpenSci’s second cohort of Champions has been onboarded! Their training first started with a session on code style, was followed by three sessions on the basics of R package development, and ended with a session on advanced R package development, which consisted of a potpourri of tips with discussion, followed by time for applying these principles to the participants’ packages. Here, I want to share one of the topics covered: Package testing, and in particular, the DRY (“don’t repeat yourself”) and DAMP (“descriptive and meaningful phrases”) principles. For this topic, we used a GitHub repository, containing an R package whose different commits illustrate the two principles. In each step we’ll share a commit or diff illustrating the changes made.


This is a companion discussion topic for the original entry at https://ropensci.org/blog/2024/03/18/dry-damp
1 Like