Installing R and R-Studio

Mac Users

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 page under "Getting Started."
  3. Select a CRAN location (a mirror site) and click the corresponding link.
  4. Click on the "Download R for macOS" link at the top of the page.
  5. Click on the file containing the latest version of R, as appropriate for your hardware.
  6. Save the .pkg file, double-click it to open, and follow the installation instructions.
  7. Now that R is installed, you need to download and install RStudio.

To Install RStudio

  1. Go to www.rstudio.com
  2. At the very bottom of the page, click on "Products" and then "RStudio Desktop" under "OPEN SOURCE".
  3. At the bottom of the resulting page, click on "DOWNLOAD RSTUDIO DESKTOP", and then at the bottom of the next page, click the "DOWNLOAD" button under "RStudio Desktop"
  4. Click "Download" under "RStudio Desktop Open Source" to get the latest Mac version; save the .dmg file on your computer; double-click it to open; and then drag and drop it to your applications folder.

Windows Users

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 page 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. Run the .exe file and follow the installation instructions.
  7. Now that R is installed, you need to download and install RStudio.

To Install RStudio

  1. Go to www.rstudio.com
  2. At the very bottom of the page, click on "Products" and then "RStudio Desktop" under "OPEN SOURCE".
  3. At the bottom of the resulting page, click on "DOWNLOAD RSTUDIO DESKTOP", and then at the bottom of the next page, click the "DOWNLOAD" button under "RStudio Desktop"
  4. Click "Download" under "RStudio Desktop Open Source" to get the latest Windows version; and follow the installation instructions.