Skip to Main Content

Research Data: R Introduction

R Introduction

This page is used in conjunction with training sessions on R.

Installation

For this workshop you will need both R and RStudio. If you like to bring and work on your own device,  you need to first install R (the language we are learning) and RStudio (an editor to make writing code in R easier) on it:

Windows

  • Download R from the CRAN website.
  • Run the .exe file that was just downloaded.
  • Go to the RStudio download page.
  • Under Installers select RStudio x.yy.zzz - Windows. Vista/7/8/10 (where x, y, and z represent version numbers).
  • Double-click the file to install it.
  • Once it’s installed, open RStudio to make sure it works and you don’t get any error messages.

macOS

  • Download R from the CRAN website.
  • Select the .pkg file for the latest R version.
  • Double-click on the downloaded file to install R.
  • It is also a good idea to install XQuartz (needed by some packages).
  • Go to the RStudio download page.
  • Under Installers select RStudio x.yy.zzz - Mac OS X 10.6+ (64-bit) (where x, y, and z represent version numbers).
  • Double-click the file to install RStudio.
  • Once it’s installed, open RStudio to make sure it works and you don’t get any error messages.

If you are able to open the RStudio without any errors popping up you are ready to work on your own device.

picture