R4WRDS Intermediate Course

Increasing your efficiency with reproducible workflows in R

Who is this course for?

What makes an Intermediate R user? This course is most relevant and targeted at folks who:

Why R?

R is an open-source language for statistical computing and a general purpose programming language. It is one of the primary languages used for data science, modeling, and visualization.

What will you learn?

In this course, we will move more quickly, assume familiarity with basic R skills, and also assume that the participant has working experience with more complex workflows, operations, and code-bases. Each module in this course functions as a “stand-alone” lesson, and can be read linearly, or out of order according to your needs and interests. Each module doesn’t necessarily require familiarity with the previous module.

This course emphasizes:

Artwork by @allison_horst

Figure 1: Artwork by @allison_horst

Course Modules

  1. Check/Update R/RStudio and Packages
  2. Version Control with git
  3. Project Management and workflows
  4. Interactive visualization
  5. Simple shiny
  6. Iteration and functional programming
  7. Parameterized reports
  8. Advanced spatial R and mapmaking


All data used in this course is expected to live in a /data subfolder in the project directory. It can be downloaded in 1 of 2 ways:

  1. Downloaded and unzipped from OSF
  2. Cloned from the r4wrds-data Github repository

Your project directory structure should look like this (note the position of the /data subfolder):

├── code
│   ├── module_01.R
│   └── module_02.R
│   └── ...
├── data
│   ├── gwl.csv
│   └── polygon.shp
│   └── ...
└── intermediate.Rproj

To complete code exercises and follow along in the course, you will create a /code subfolder to store .R scripts, which we recommend naming by module.

You will also need to create an intro.Rproj file, covered in the introductory project management module. Alternatively, on the command line, use touch intro.Rproj (MacOS/Linux) or echo > intro.Rproj (Windows) in the root project directory.

Workshop Overview

We will follow the SFS Code of Conduct throughout our workshop.

Source content

All source materials for this website can be accessed at the r4wrds Github repository.


Content in these lessons has been modified and/or adapted from Data Carpentry: R for data analysis and visualization of Ecological Data, the USGS-R training curriculum here, the NCEAS Open Science for Synthesis workshop here, Mapping in R, and the wonderful text R for data science.

Next module:
1. Updating R

site last updated: 2021-07-29 10:01


If you see mistakes or want to suggest changes, please create an issue on the source repository.


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at https://github.com/r4wrds/r4wrds, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".