R is a statistical programming language for statistical computing and graphics. R language provide us a wide variety of statistical and graphical techniques, and is highly extensible.
This article will help you to install R programming language on Ubuntu system.
To install latest R packages add the following repository in /etc/apt/sources.list file as per your Ubuntu version.
deb http://cran.rstudio.com/bin/linux/ubuntu vivid/
deb http://cran.rstudio.com/bin/linux/ubuntu utopic/
Ubuntu 14.04 LTS
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
Ubuntu 12.04 LTS
deb http://cran.rstudio.com/bin/linux/ubuntu precise/
Install R Packages:
Add the packages signing key first using following command.
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
Now install R packages using following command.
$ sudo apt-get update $ sudo apt-get install r-base r-base-dev
Access R Console:
At this point you have successfully install R language packages on your system. Type R to get console access.
RR version 3.2.1 (2015-06-18) -- "World-Famous Astronaut" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. >