6  Packages

6.1 Real title: Packages, Code Robustness and Unit Testing

TipLecture Week 6

We discussed the flow of creating R packages and Shiny apps. Along the way, we touched upon the importance of version control, testing and documentation. A static version of the Shiny slides can be found [here (the full materials are available in the course’s GitHub reo). Our tutorial for R package development can be found here, and you can see a previous year’s recording here (download for the 1h+ recording)

6.2 Exercise 1

Follow the guided tutorial on R package development from this page.

6.3 Exercise 2

Set up a version controlled workflow to develop either an R package or a Shiny app. The topic of this R package or Shiny app may be anything, as long as the finished product is non-trivial. That is, the R package or Shiny app should have clear functionality and contain more than boilerplate code or defaults. Make sure to document the development process step-by-step with git commits, and make the end-product referencable with a Zenodo DOI.

The finished end-product of this exercise should be handed in as part of the course deliverables.