R Workshop Materials
Materials for each workshop in the series. We set everything up together at the start of each session; the steps are written out here so you can find them again later.
Workshop 1: From Files to a Reproducible Report
Download everything you’ll need using the button below.
The zip contains a single folder, r-workshop-1, holding three things:
r-workshop-1/
├── R-Workshop-1.Rproj the RStudio project file
├── workshop1_student.qmd the workbook you'll write in
└── data/
└── workshop1_survey.csv the dataset (250 responses)
Setting it up
We’ll walk through this together, but here it is in writing.
1. Unzip it. On a Mac, double-clicking the download is all you need to do — it unzips into a folder right next to it. On Windows, double-clicking only shows you what’s inside, so open the zip and choose Extract All. If you work inside that preview instead of extracting, nothing you do will save.
2. Move the whole folder somewhere you’ll find it again. Not Downloads. Put r-workshop-1 in your Documents folder, or wherever you keep coursework. We’ll work out of this same folder for the rest of the workshop, and Downloads is the first place things get lost or auto-cleared.
3. Open it by double-clicking R-Workshop-1.Rproj. Not the .qmd file. Opening the .Rproj is what tells RStudio which folder is the project, and that’s what makes data/workshop1_survey.csv work as a path. If you open the workbook on its own, the data won’t load.
Keep the folder together
The three items have to stay in the same folder, arranged the way they arrived. The workbook asks R to read data/workshop1_survey.csv, which means “starting from the project folder, look inside data for that file.”
Workshop 2: Visualizing and Describing Data
One file this time. It uses the same dataset as Workshop 1, so there’s nothing else to download.
Put it in the same r-workshop-1 folder you set up for Workshop 1, right next to workshop1_student.qmd:
r-workshop-1/
├── R-Workshop-1.Rproj
├── workshop1_student.qmd
├── workshop2_student.qmd ← the new file
└── data/
└── workshop1_survey.csv
Open R-Workshop-1.Rproj as before, then open workshop2_student.qmd from RStudio’s Files pane. If you put the file anywhere else, it won’t find the data.
Workshop 3: A Research Workflow from Start to Finish
Two files this time: the workbook, and a new dataset it uses.
They go in different places. The workbook sits in the r-workshop-1 folder with the others; the dataset goes inside the data folder, next to the Workshop 1 survey:
r-workshop-1/
├── R-Workshop-1.Rproj
├── workshop1_student.qmd
├── workshop2_student.qmd
├── workshop3_student.qmd ← the new workbook
└── data/
├── workshop1_survey.csv
└── workshop3_campus_survey.csv ← the new dataset
Open R-Workshop-1.Rproj first, as always, then open workshop3_student.qmd from the Files pane. If the dataset ends up anywhere other than data/, the workbook won’t find it.