Skip to main content Skip to navigation

How to install R and RStudio

How to install R and RStudio

This page shows you how to install R and RStudio on your Mac computer. R and RStudio are programs you will use during your studies at CIM. R is a statistical programming language. RStudio is an interface for using R.

Downloading R and RStudio

Go to the R install page (click here https://cran.r-project.org/bin/macosx/) and click on the link to the mac installer (R-3.5.1.pkg) by clicking on the link shown below.

installR

Next, go to the RStudio install pages (click here https://www.rstudio.com/products/rstudio/download/) and download the RStudio install for Mac by clicking on the link (RStudio 1.0.153-MacOSX10.6+ (64-bit)) shown below.

rstudio

Installing R and RStudio

The R and RStudio install files should be in your downloads folder. If you open your downloads folder then you will see both of them, as shown below.

downloads

Double click on the R pkg file. An installer window will open. Click on the continue button.

installer 1

Click continue through the next few screens. Click on 'Agree' when shown the terms and conditions.

installer 2

Click on continue and then you will be asked to enter the password to your computer. Enter your password and then click 'Install Software'.

An install bar will be shown and the below screen is shown when the install is complete. R is now installed on your Mac!

success

Click double click on the RStudio installer.

rstudio installer

A window will open. Drag RStudio to the applications folder. RStudio is now installed.

drag

Running RStudio

Both R and RStudio are now installed on your Mac. To open RStudio you can open the Applications folder and double click on the RStudio icon.

finder

Rstudio will now open up and look something like below. You are now ready to work in RStudio.

Rstudio