Stat 412/512

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.

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

Follow these instructions to get R and RStudio. There are three steps, complete them all.

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.0.1 for Windows” (or whatever version is displayed at the top of the page)
  • Open the downloaded file and install R


  • Click on the “Download R for Mac OS X” link
  • Click on first “R-3.0.1.pkg” link.
  • 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.