exampletestr-An easy start to unit testing R packages [version 2; referees: 2 approved]

Rory Nolan*, Sergi Padilla-Parra

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

1 Citation (Scopus)


In spite of the utility of unit tests, most R package developers do not write them. exampletestr makes it easier to start writing unit tests by creating shells/skeletons of unit tests based on the examples in the user's package documentation. When completed, these unit tests test whether said examples run correctly. By combining the functionality of exampletestr with that of covr, having ensured that their examples adequately demonstrate the features of their package, the developer can have much of the work of constructing a comprehensive set of unit tests done for them.

Original languageEnglish
Article number31
JournalWellcome Open Research
Publication statusPublished - 1 Jan 2017


  • Covr
  • Exampletestr
  • R
  • Test
  • Testing
  • Testthat
  • Unit


Dive into the research topics of 'exampletestr-An easy start to unit testing R packages [version 2; referees: 2 approved]'. Together they form a unique fingerprint.

Cite this