Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install R version 3 [closed]

Tags:

version

r

After having some problems to install new version of R from command line on Ubuntu (straightforward way just updated it to version 2.15.x)

I want to share the way to do this.

like image 862
Salvador Dali Avatar asked Apr 18 '13 21:04

Salvador Dali


People also ask

How do I update R version 3.6 3?

If you want to update to the latest version of RStudio, hover over “Help” on the top menu bar of your Mac, and click “Check for Updates”. Then, quit the RStudio program, go to the RStudio website, and download and install the latest version. Now you should have the latest versions of R and RStudio on your computer.

How do I install a newer version of R?

The easiest way to update R is to simply download the newest version. Install that, and it will overwrite your current version. There are also packages to do the updating: updateR for Mac, and installr for Windows.

Can I install two versions of R?

On windows, different version of R get installed on its own folder so you can choose which one to use, although you can't use two versions simultaneously on the same RStudio session.

Should I install both 32 and 64 bit R?

It is good to have both versions of R because sometimes the 32-bit version is faster to run, but it is limited to 3Gb of RAM. The 64-bit version is not limited and can access as much RAM as your computer has.


1 Answers

This is an old post and I wrote it when it was impossible to install R with simple (it was installing old 2.15 version):

sudo apt-get install r-base-core

Right now you do not need to do all written below and can simply use the abovementioned command. At the time of updating it will give you 3.1 version.

Here is previous post

Uninstall old R

sudo apt-get remove r-base-core

Open sources.list

sudo nano /etc/apt/sources.list    

and add deb to it

deb http://cran.rstudio.com/bin/linux/ubuntu precise/

precise is your ubuntu name (may be different)

Add key to sign CRAN packages

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

Add specific PPA to the system

sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade

installing

sudo apt-get install r-base

From R to check version

version

should give you

version.string R version 3.0.0 (2013-04-03)

Hope people will find this helpful

like image 69
Salvador Dali Avatar answered Oct 19 '22 00:10

Salvador Dali