GitHub
LinkedIn
Twitter
YouTube
RSS

Building an R Package

Building an R Package

Course Level: Advanced

This is a one-day intensive course on building a package in R. The focus will be on getting a working R package ready for distribution. This includes automating package setup and consistent package structure with {usethis}. You will be able to use the {testthat} workflow to create tests for packages.

Book: Building an R Package

Start Date:
Price:
Venue Details:
Time:
Duration:

Course Details

  • Course Outline
  • Learning Outcomes
  • Materials
  • Prior Knowledge

Course Outline

Participants can bring their own code or they can use the provided example code to write a fully functional R package.

  • Why create an R package.
  • What is in an R package.
  • Writing documentation with {roxygen2}.
  • Creating packages with RStudio.
  • Distributing your package.

Learning Outcomes

By the end of the day participants will…

  • have an understanding of CRAN and how R packages work
  • be able to document package functions
  • be able to add datasets, vignettes and unit tests to an R package
  • have produced their own working R package

Materials

  • Page 1 of example course material for Building an R Package
  • Page 2 of example course material for Building an R Package
  • Page 3 of example course material for Building an R Package
  • Page 4 of example course material for Building an R Package
  • Page 5 of example course material for Building an R Package

Prior Knowledge

It is assumed that all applicants have a basic knowledge of R. Attending the Introduction to R course and programming with R is sufficient.

Attendee Feedback