Lecture notes for course POLSC-UH2211
Please complete the steps below before coming to the first class.
Nothing else is required.
-
Create a free account on GitHub.
- You will not be able to change your username later, so choose carefully.
- Use a permanent email address, so you do not lose access after graduation.
-
Enable GitHub Education.
- This gives you free access to developer tools used in this course.
- It also allows you to run R in your browser for about 60 hours per month.
- This step links your GitHub account to your university email address.
- If approval is pending, that is fine — you can still follow the first classes.
✅ That’s it. Please do not install anything yet.
During the first lecture, we will set up the working environment together using GitHub Codespaces.
You do not need to install any software on your computer. Everything will run directly in your browser.
Please bring a laptop and make sure you can log in to your GitHub account.
This step is not required at the beginning of the course.
Once you are comfortable with R and GitHub, you may choose to work locally on your own computer.
We will discuss this option later in the semester.
If you decide to do so, the general steps are:
- Install Git (e.g., GitHub Desktop)
- Install R
- Install the IDE of your choice (see pros and cons below):
- Clone this repository to your computer using GitHub Desktop
- Open the repository folder in your IDE of choice and start working!
Please come to office hours or talk to me after class if you need help with this step.
| IDE | Pros | Cons | Who for? |
|---|---|---|---|
| RStudio | • First-class support for R • Designed specifically for data analysis • Many students may have used it before • Very simple setup |
• Interface feels a bit dated • Only supports R (and a bit of Python) • No AI features |
People who have used RStudio before |
| Visual Studio Code | • Matches GitHub Codespaces exactly • Industry standard across many fields; support all languages (R, Python, etc.) • Excellent AI support |
• R support is less polished and needs some initial configuration (follow tutorial here) | People who want to replicate the Codespaces experience exactly |
| Positron | Built on VS Code, so inherits most same strengths (very similar interface)• Cleaner R experience than VS Code • Better AI support for data analysis |
• Newer, so less polished than VS Code | My recommendation for most students |