Install R in Ubuntu Linux
Posted: Sat Apr 25, 2015 2:17 am
Note: The easiest and quickest way to install R on any Ubuntu Linux distribution is to follow similar instructions for installing R on Ubuntu 16.04 (Xenial Xerus), https://www.tssfl.com/install-r-in-ubuntu-4403 replacing xenial with: trusty, lucid, etc., depending on your release, otherwise, continue by following the instructions bellow.
By the time you make installation, R may not be the latest version, so to obtain the latest R packages, add an entry
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu utopic/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/
or
else
depending on your distribution in your /etc/apt/sources.list file, replacing <my.favorite.cran.mirror> by the actual URL of your favorite CRAN mirror.
Now, install the complete R by typing the following in the command line:
sudo apt-get update
sudo apt-get install r-base
To install R packages such as "deSolve", code
$R
>install.packages("package name")
Choose CRAN and then click ok. You can however install R via Ubuntu Software Center.
By the time you make installation, R may not be the latest version, so to obtain the latest R packages, add an entry
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu utopic/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/
or
else
depending on your distribution in your /etc/apt/sources.list file, replacing <my.favorite.cran.mirror> by the actual URL of your favorite CRAN mirror.
Now, install the complete R by typing the following in the command line:
sudo apt-get update
sudo apt-get install r-base
To install R packages such as "deSolve", code
$R
>install.packages("package name")
Choose CRAN and then click ok. You can however install R via Ubuntu Software Center.