How to Install R Studio

In order to run R and R-studio on your system, you need to follow the following three steps in the same order.

  1. Install R
  2. Install R-Studio
  3. Install R-Packages (If needed)

1. Install R

Follow the steps below with respect to the operating system you are using:

For Windows :

Download the binary setup file for R from the following link. R for Windows. Open the downloaded .exe file and Install R.

For Mac :

Download the appropriate version of .pkg file form the following link. R for Mac. Open the downloaded .pkg file and Install R.

For Linux :

For complete R System installation in Ubuntu,

sudo apt-get install r-base

2. Install R Studio

On the following link Download R Studio choose the appropriate installer file for your operating system, download it and then run it to install R-studio.

3. Install the packages (Optional)

If your need to use R requires a particular package/library to be installed in R-studio. You can follow the instructions below to do so.

  1. Run R studio
  2. Go to Tools/Install Packages… or Click on the Packages tab in the bottom-right section and then click on install.
  3. In the Install Packages dialog, write the package name you want to install under the Packages field and then click install. This will install the package you searched for or give you a list of matching package based on your package text.