Build an R package
An intermediate R course for people who want to build their first R package.
There are many benefits to turning your R scripts or functions into a package, like making your code easier to re-use, easier to share with others, easier to document, and easier to test. But the process of writing a package can feel intimidating, especially if you haven’t done it before. But it doesn’t need to!
Learning outcomes:
- Know what things you need to make a package and how to create them
- How to write functions (in a package-friendly way) and add them to a package
- How to write documentation and examples for functions
- Best practices for package development
- How to share your package with other people
Pre-requisites:
- The session aims to be introductory, so you don’t need any previous experience of building R packages (or even writing functions!) but some basic knowledge of R will be useful.
- The session will use the following R packages:
devtoolsusethisroxygen2stringr(optional)
Time: 2 hours.
Course website: nrennie.rbind.io/training-r-packages