Install R and Rstudio in Ubuntu 16.04 LTS !

R is a programming language and free software environment for statistical computing and graphics that is supported by the R Foundation for Statistical Computing. The R language is widely used among statisticians and data miners for developing statistical software and data analysis.
R is hot. Whether measured by more than 10,000 add-on packages, the 95,000+ members of LinkedIn’s R group or the more than 400 R Meetup groups currently in existence, there can be little doubt that interest in the R statistics language, especially for data analysis, is soaring.

Why R? It’s free, open source, powerful and highly extensible. “You have a lot of prepackaged stuff that’s already available, so you’re standing on the shoulders of giants,” Google’s chief economist told The New York Times back in 2009.

Note:- You can find the R-Base in the Ubuntu Software Center, but mostly they can be outdated. Now to make sure that you are on the most updated package repository, we need to add a repo. First, we’ve got to add a line to our /etc/apt/sources.list file.

Note the “xenial” in the line, indicates that it’s Ubuntu 16.04. If you have a different flavour or versions of it, just change that respectively.

sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list

Add the Keyring.

Firstly,

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9

Then,

gpg -a --export E084DAB9 | sudo apt-key add -

Install the R-Base

sudo apt-get update
sudo apt-get install r-base r-base-dev

Install the R Studio

sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.143-amd64.deb
sudo gdebi -n rstudio-1.0.143-amd64.deb
rm rstudio-1.0.143-amd64.deb

That’s it.

Note:- In case you get stuck while executing the above commands one by one just run, this:-

CTRL+C to stop then

sudo apt-get clean

to clean your local repo and then try the command again

sudo apt-get install r-base r-base-dev

Image courtesy:-

askubuntu

wikipedia

computerworld

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

7 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

7 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

12 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

12 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

12 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

1 year ago