Once you’ve gotten used to writing R functions, you’ll find lots of opportunities to write them. That leads to a new problem – how do you keep track of many (i.e. two or more) functions? Writing R packages solves that problem. We’ll cover the basics (package structure, functions, documentation, and deployment) in the first part of this topic, and some advanced ideas (namespaces, testing, vignettes, including data) in the second part.

This topic is made up of the following components:

The slack channel for this topic is here.

The code that I produced working examples in lecture is here.