6 - Packaging, R Scripts

Objectives

  • Introduction to R package building
  • R package testing (RUnit, testthat, tinytest)
  • Introduction to scripting with R

Topics

  • Packages
    • Why packages?
    • Basic package structure
  • Package building
  • Package testing
  • Rscript and r
  • docopt

Core Material

Note that the first half of the material is new for 2022, but the second half are still from 2021 and will be updated next week.

Lecture Slides

Lecture Videos

Extras

Additional Resources