Unit 1: Getting StaRted

Lab 1: Installing R and RStudio

It is helpful for us as instructors and you as students to all be working in the same environment.

RStudio is a nice, easy, clean program that sits on top of R and works on all operating systems. It is also free.

Windows

To install R:

  1. Open an internet browser and go to www.r-project.org.
  2. Click the “download R” link in the middle of the first paragraph under “Getting Started.”
  3. Select a CRAN location (a mirror site) and click the corresponding link.
  4. Click on the “Download R for Windows” link at the top of the page.
  5. Click on the “install R for the first time” link at the top of the page.
  6. Click “Download R for Windows” and save the executable file somewhere on your computer.
  7. Run the .exe file and follow the installation instructions.

Now that R is installed, you need to download and install RStudio.

To install RStudio:

  1. Go to www.rstudio.com and click on the “Download RStudio” button.
  2. Click on “Download RStudio Desktop.”
  3. Click on the version recommended for your system, or the latest Windows version, and save the executable file.
  4. Run the .exe file and follow the installation instructions.
  5. If a window pops up to ask if you want to install “command line developer tools”, there is no need.

Mac

To install R:

  1. Open an internet browser and go to www.r-project.org.
  2. Click the “download R” link in the middle of the first paragraph under “Getting Started.”
  3. Select a CRAN location (a mirror site) and click the corresponding link.
  4. Click on the “Download R for (Mac) OS X” link at the top of the page.
  5. Click on the file containing the latest version of R under “Files.”
  6. Save the .pkg file, double-click it to open, and follow the installation instructions.

Now that R is installed, you need to download and install RStudio.

To install RStudio:

  1. Go to www.rstudio.com and click on the “Download RStudio” button.
  2. Click on “Download RStudio Desktop.”
  3. Click on the version recommended for your system, or the latest Mac version, and save the .dmg file on your computer.
  4. Double-click it to open, and then drag and drop it to your applications folder.
  5. If a window pops up to ask if you want to install “command line developer tools”, there is no need.

To install this course’s lessons

The lessons we will use are available online and you need to download them to your laptop.

  1. Open RStudio
  2. In the console panel, next to the arrow (>), type each line below followed by ENTER:
to be continued ...

This will download the most up-to-date lessons, ready for class next week.

You will learn what these commands do later in the course.

Get ready for some gRRRReat fun!

What is a pirate’s favourite language?

R!


Updated: 2018-08-28