Appendix A — Install Rstudio and git
A.1 Part 1: Install Git
A.1.1 Windows Users
- Download Git:
- Go to https://git-scm.com/download/win
- The download should start automatically
- If not, click “Click here to download manually”
- Run the Installer:
- Double-click the downloaded
.exefile - Recommended settings during installation:
- Use the default installation directory
- Select “Git from the command line and also from 3rd-party software”
- Use the bundled OpenSSH
- Use the OpenSSL library
- Checkout Windows-style, commit Unix-style line endings
- Use MinTTY (default terminal)
- Default pull behavior: “Default (fast-forward or merge)”
- Accept all other defaults
- Double-click the downloaded
- Verify Installation:
- Open Command Prompt (search for “cmd” in Start menu)
- Type:
git --version - You should see something like
git version 2.x.x
A.1.2 Mac Users
Check if Git is Already Installed:
- Open Terminal (Applications → Utilities → Terminal, or search for “Terminal”)
- Type:
git --version - If you see a version number (e.g.,
git version 2.x.x), git is already installed - skip to Part 2!
If Git is Not Installed:
Option A: Command Line Tools (Recommended - faster and smaller)
- In Terminal, type:
xcode-select --install - Click “Install” when prompted
- Agree to the license terms
- Wait for installation to complete (5-10 minutes)
Option B: Download from Git Website
- Go to https://git-scm.com/download/mac
- Download the installer for your macOS version
- Open the downloaded
.dmgfile and follow instructions
- In Terminal, type:
Verify Installation:
- In Terminal, type:
git --version - You should see something like
git version 2.x.x
- In Terminal, type:
A.2 Part 2: Install RStudio
A.2.1 All Users (Windows and Mac)
- Download RStudio Desktop:
- Go to https://posit.co/download/rstudio-desktop/
- Scroll down to “2: Install RStudio”
- Click the download button for your operating system (Windows or macOS)
- Install RStudio:
- Windows: Double-click the
.exefile and follow the installation wizard - Mac: Open the
.dmgfile and drag RStudio to your Applications folder
- Windows: Double-click the
- Launch RStudio:
- Open RStudio from your Applications folder (Mac) or Start menu (Windows)
- Wait for it to fully load
A.3 Part 3: Configure Git in RStudio
Open RStudio
Configure Git Settings:
- Go to Tools → Global Options
- Click on Git/SVN in the left sidebar
- Check that the “Git executable” field shows a path
- Windows example:
C:/Program Files/Git/bin/git.exe - Mac example:
/usr/bin/gitor/usr/local/bin/git
- Windows example:
- If the field is empty, click “Browse” and locate git manually
Set Your Git Identity:
- In RStudio, go to Tools → Terminal → New Terminal
- Type the following commands (replace with YOUR information):
git config --global user.name "Your Full Name" git config --global user.email "your.email@example.com"- Use the
@my.UTexas.edu email address (this does not have to be the same as your GitHub email)
Restart RStudio to ensure all settings take effect
A.4 Installation Complete!
You’re now ready for the course. Please complete the verification checklist below to confirm everything is working properly.
A.5 Verification Checklist
A.5.1 Step 1: Check Git Version
A.5.2 Step 2: Verify Git Configuration
In the same command line/terminal window, type each command and verify output:
A.5.3 Step 3: Launch RStudio
A.5.4 Step 4: Check RStudio Version
A.5.5 Step 5: Verify Git Integration in RStudio
A.5.6 Step 6: Test Terminal in RStudio
A.6 ✓ Text Editing Verification
A.6.1 Step 7: Create a Test Script
A.7 🎉 All Checks Complete!
If you checked all boxes above, you’re ready for class!
A.8 ⚠️ Troubleshooting
If Git is not found in RStudio (Step 5):
- Restart RStudio completely (quit and reopen)
- Re-check Tools → Global Options → Git/SVN
- If still empty, click Browse next to “Git executable” and navigate to:
- Windows:
C:\Program Files\Git\bin\git.exe - Mac:
/usr/bin/gitor typewhich gitin Terminal to find the path
- Windows:
- Click Browse and select the git executable file
- Click OK and restart RStudio
If Git version command doesn’t work (Step 1): - Windows: Git may not be in your system PATH. Try reinstalling Git with default settings. - Mac: You may need to install Command Line Tools. Open Terminal and type xcode-select --install
If system is still having issues: - Note the specific error message or problem - Take a screenshot if possible - Flag down instructor or TA in class. - Contact instructor or TA via Canvas.
If you run into unfixable problems with your install you can use a free account on http://rstudio.cloud.