[R-sig-Debian] Updating R for Linux

Dirk Eddelbuettel edd at debian.org
Wed Sep 23 17:39:08 CEST 2009

On 23 September 2009 at 08:17, Dennis Fisher wrote:
| Colleagues,
| Please forgive my ignorance of this topic.  I am experienced with the  
| installation/use of R in OSX and Windows, much less so with Linux.

Welcome!  We're here to help. 

| I just created a virtual machine of Ubuntu 9.0.4.  Using the Synaptic  
| Package Manager, I installed R 2.8.1.  I would like to obtain 2.9.x  
| and I am having trouble doing so using the tools available within  
| Ubuntu.
| I tried
| 	apt-get install r-base
| The system replied that the newest version was already installed and  
| no changes were made.

Right.  But you want

	apt-get update			# to refresh information
	apt-get dist-upgrade		# to upgrade to newer versions
					# incl. possible dependencies

after you have done this:

| I also added
| 	dev http://cran.cnr.berkeley.edu/bin/linux/debian etch-cran

Wrong repo.  

You copied this from the _Debian_ README but there is also one for _Ubuntu_
in the neighboring directory (ie $CRAN/bin/linux/ubuntu/). Use that instead.

| to
| 	/etc/apt/sources.list
| Running apt-get install r-base again yielded no response.

Very close.  

| Can anyone advise on the simplest means to update to 2.9.x.  I need  
| only the basic packages, nothing special.  Thanks in advance.

The above will get you fresh and shiny R 2.9.2 packages courtesy of Vincent
and Michael (for the Ubuntu port).  Debian via CRAN works thanks to Johannes,
and yours truly looks after things in Debian itself which provides the basis
for these so-called 'ports'.

Keep posting with questions, you're very close.


| Dennis
| Dennis Fisher MD
| P < (The "P Less Than" Company)
| Phone: 1-866-PLessThan (1-866-753-7784)
| Fax: 1-415-564-2220
| www.PLessThan.com
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-Debian at r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Three out of two people have difficulties with fractions.

More information about the R-SIG-Debian mailing list