Stat 411/511

Getting set up on your own computer

Optional

For ST511 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. You don’t need to install anything, just go to http://rstudio.scf.oregonstate.edu and log in with your ONID ID and password.

If you want to work without an internet connection follow these instructions to get R and RStudio.

Step One: Install R for your operating system.

Visit http://cran.r-project.org/.

Windows

  • Click on the “Download R for Windows” link
  • Click on the “base” link
  • Click “Download R 2.14.1 for Windows” (or whatever version is displayed at the top of the page)
  • Open the file and install R

Mac

  • Click on the “Download R for Mac OS X” link
  • Click on first “R-something.pkg” link.
  • Open the file and install R

Linux

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

Step Two: Install RStudio for your operating system

Visit http://www.rstudio.org/download/desktop

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("Sleuth2", "ggplot2"))

You might be asked Would you like to create a personal library'~/Library/R/2.13/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:

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

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