Skip to content

Repository files navigation

Code You Can Bank On

Hands-on workshop covering package building, automated testing, and designing code

Amelia McNamara, University of St Thomas

Onsite at the Minneapolis Federal Reserve August 10, 11, and 17, and online.

Hosted materials available at https://ameliamn.github.io/CodeYouCanBankOn/

Tentative schedule:

Prereqs

  1. Ensure you have R and RStudio installed. You don't need the most recent version of either. I'm currently running R version 4.4.1 "Race for Your Life" and RStudio version 2026.07.

  2. Install (or update!) the packages we're going to use. Even if you are certain you already have all these packages on your system, it's worth running install.packages() again, just to make sure you have recent versions.

install.packages(c("forecast", "fredr", "imputeTS", 
                   "rlang", "roxygen2", "styler", "testthat", 
                   "tidyverse", "usethis", "vdiffr"))
  1. [Optional, but recommended] Make sure your system is prepped to build more complex packages. We're not going to get into C/C++ packages here, but it's good to have the machinery to do more in-depth stuff. You can check your system's status with the devtools::has_devel() function. If you don't get a positive response from that function, Jenny Bryan has instructions for getting up to speed:

Background

I am assuming you have a baseline familiarity with

  • R as a language
  • Writing functions
  • Markdown (RMarkdown/Quarto/plain Markdown)
  • git

Catch up

I'll do a little bit of review of each of those topics, but if they are totally new to you, here is some background reading to help you get caught up.

All material is covered by a CC-BY-SA-4.0 license.

The material here is in turn based on other CC-BY products, primarily Building tidy tools workshop, uncoast::unconf day zero workshop, and R packages book.

About

August 2026 training for Federal Reserve

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages