Writing functions in R
Summary
This unit of the workshop covers the writing of R functions. It consists of four themes, each with a small practical:
- Function basics (e.g. the structure of functions)
- Best practices (e.g. documentation with roxygen2)
- Testing and debugging (e.g. the testthat package)
- Advanced tools (e.g. profiling)
The slides for the workshop, including the instructions for the practicals, can be found here:
Here is a link the source code that was used to generate the presentation:
This session is led by Kilian Eichenseer. If you encounter any issues while working with the material, please contact him here.