Install R in Ubuntu Linux

Post Reply
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5334
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#1

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.
0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux and Unix Based Operating Systems”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest