Advanced R Package Development

DFO - February 2026

Welcome!

Instructors:

Welcome!

This is a three-day course for people who want to build R packages that are robust, maintainable, and easy for others to use.

Code of Conduct:

Sticky Notes (online)

I’m stuck ✋

Use the Zoom Raise Hand reaction

I’m good 👍

Use the Thumbs Up reaction

Discussions / Q & A

Open the welcome discussion and introduce yourself:

  • Office/department, city/town
  • Why you’re here
  • Something you’ve built or are trying to build

Resources

Check your setup

Run these two commands and make sure they succeed before we begin:

devtools::has_devel()

Look for Your system is ready to build packages!

usethis::git_sitrep()

Look for Personal access token for 'https://github.com': '<discovered>'

Day 1

Schedule

Time Session
8:00 - 8:20 Introduction
8:20 - 9:20 Package Development Fundamentals
9:20 - 9:35 Break
9:35 - 10:55 Git/GitHub for Collaborative Development
10:55 - 11:10 Break
11:10 - 12:30 Testing with testthat - Part 1

Day 2

Schedule

Time Session
8:00 - 9:20 Function Design Best Practices
9:20 - 9:35 Break
9:35 - 10:55 Testing with testthat - Part 2
10:55 - 11:10 Break
11:10 - 11:30 Advanced Documentation
11:30 - 12:30 Debugging Techniques

Day 3

Schedule

Time Session
8:00 - 9:20 Object-Oriented Programming
9:20 - 9:35 Break
9:35 - 10:35 Data Packages
10:35 - 10:55 Releasing Your R Package
10:55 - 11:10 Break
11:10 - 12:30 BYOP + Open Topics

BYOP + Open Topics

Open Q&A

  • Specific challenges you’ve encountered during the workshop
  • Applying workshop concepts to your own package

Bring Your Own Package

  • Dedicated time to work on your package
  • Instructors available for individual consultation

Let’s go!