Stat 411/511

Getting set up on your own computer

For ST411/511 we will RStudio as our integrated development environment (IDE) for R. It provides an uniform experience over all operating systems and has a nice built-in editor.

There are three steps! You need to:

  1. Install R
  2. Install RStudio
  3. Install some R packages

RStudio and R are also available in your lab computer room, the main computer lab in the basement of Milne, and Cordley 3003.

Step One: Install R for your operating system.



  • Click on the “Download R for Windows” link
  • Click on the “base” link
  • Click “Download R 3.2.2 for Windows”
  • Open the downloaded file and install R


  • Click on the “Download R for Mac OS X” link
  • Click on first “R-3.2.2.pkg” link (unless you have an older Mac OS operating system).
  • Open the downloaded file and install R


  • Click on the “Download R for Linux” link
  • You are own your own…

Step Two: Install RStudio for your operating system


Download the recommended version, open the file and install RStudio.

Step Three: Get some packages we will need

Run RStudio. In the “Console”, type

install.packages(c("Sleuth3", "ggplot2"))

You might be asked Would you like to create a personal library'~/Library/R/**/library' to install packages into? (y/n) It’s a good idea, type y.

You should be good to go! Test everything by copying and pasting the following into the console:

qplot(Sex, Salary, data = case0102, geom = "boxplot")

You should see a plot very like that in Display 1.12 in Sleuth.