RStudio requires R to be installed in the system.

But before you start installing R, you need to add the CRAN repository to get the latest version of R. For that, you can add an entry like the one shown below based on your Ubuntu version.

I am using Ubuntu 14.04 LTS (Trusty Tahr), so my entry will be like,

deb https://<cran.mirror>/bin/linux/ubuntu trusty/

Now you have to add one more thing to the above entry. The CRAN mirror you wish to use.

You can choose your favorite CRAN mirrors from

I am adding University of California, Berkeley, CA as my CRAN mirror.

Now, open the terminal (Ctrl+Alt+T) and enter your entry based on your ubuntu version and CRAN mirror.

deb trusty/

Update the packages,
sudo apt-get update

Now we can install R packages
sudo apt-get install r-base

Once the above installations are done, you are ready to install RStudio
sudo apt-get install gdebi-core
sudo gdebi rstudio-server-0.99.903-amd64.deb

Access RStudio using the web browser,
http://<IP Address>:<port number>

Note: You can check your IP address using ifconfig. The default port number will be 8787.
The username and password will be same as that of your system.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s