Setup Guides
R, RStudio, Git, and GitHub, explained once and kept here
These are the reference pages for the plumbing of the course: getting the software installed, connecting RStudio to GitHub, organizing your work as projects, and saving that work with commits and pushes.
We will walk through all of it together in class. These pages exist so that you never have to reconstruct it from memory or from your notes. Bookmark this page.
Doing a weekly exercise is the short version: three commands, start to finish. Come back here when you want to understand what those commands are doing, or when something breaks.
Start here
If you are setting up for the first time, work through the guides in this order. The first three are done once. The fourth you will use every week.
| Guide | When | |
|---|---|---|
| 1 | Installing R, RStudio, and Git | Once, before Week 1 |
| 2 | Connecting RStudio to GitHub | Once (and again when your token expires) |
| 3 | RStudio projects and cloning a repository | Once per repository |
| 4 | Committing, pushing, and pulling | Every time you work |
There is a fifth page that is not part of the sequence: Error messages, decoded is a lookup table of every Git and GitHub error you are likely to hit, with what each one means and how to fix it. Go there whenever something breaks.
The one-time checklist
You are fully set up when all five of these are true:
If any line fails, the guide that covers it is linked in the table above.
If you get stuck
Read the exact error message, then look it up on the error messages page. Nearly every Git problem people hit is one of about a dozen errors, and all of them are listed there with fixes.
If that does not resolve it, paste the exact error (or a screenshot) into an AI assistant and ask what it means. If you are still stuck after that, bring the error text to office hours or email it. Please do not spend an evening fighting the setup alone: it is not what this course is testing.
These guides are written to stand on their own. Anything specific to GPH-GU 2182 is fenced off in a box labelled In this course; everything outside those boxes applies to any R user setting up Git and GitHub. You are welcome to link to these pages or adapt them for your own students.