Installing R

R is the statistical programming language that we’ll use throughout the course. The following are some essential steps to install on Windows or Mac. The slides from the first provide visual supplement to these instructions.

The instruction below are outlined in a presentation on Jamie’s Speakerdeck.


Step 1: R

  1. Go to R Project.
  2. Click “CRAN” on the left.
  3. Find the USA and pick a link. I always selected the “HTTPS” version from Berkeley in the USA section.
  4. Select Macintosh or Windows. Windows people, you can click “install for the first time.”

  5. Go through the motions for installation.

Step 2: Output like a Pro

Mac users, please download both of these:

  1. The latest version of XQuartz.
  2. The latest version of MacTeX.

Windows users, please download:

  1. The latest version of MikTeX.

Installing R Studio

Step 1: R Studio

  1. You’ll be installing the free version of R Studio Desktop.
  2. Go to R Studio.
  3. Under “Installers for Supported Platforms” select Windows or Mac.
  4. Go through the motions for installation.

Step 2: R Studio Tips for Performance

  1. Under “Global Options” -> General -> unclick “Restore .RData at Startup”
  2. Under “Global Options” –> “Code” -> check “softwrap r-source files”
  3. Under “Global Options” –> “Appearance” -> select a dark background for the Edward Snowden/Annoymous/Hacker appearance.
  4. Under “Global Options” –> “Pane Layout” –> put console in the upper left, source in the upper right, File, Plots in the lower left, and Environent, History in the lower right. The pane settings are Jamie’s preference which helps for consistency when teaching. No other reason.

Assignments

Home