Linux

bugman

Super Moderator
Yeah, I realised that just after uploading them. I am using a ubuntu screenshot apt for the first time. I think I'll have to resize in gimp.
 

bugman

Super Moderator
Can anyone give my a pointer about updating R-base from 2.14 to 2.15.2? The synaptic manager only offers 2.14 and using the commnad line I get the message that I am currently using the latest version - which I'm not.

I have downloaded the tar.gz folder from the cran mirror but I am having real trouble installing it? Anyone able to help - or knows of a decent link?

Cheers
 

Dason

Ambassador to the humans
Assuming you're running Ubuntu/Mint - follow the directions here: http://cran.r-project.org/bin/linux/ubuntu/

Mainly run this:
Code:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
Add this to the bottom of /etc/apt/sources.list (you'll need to use sudo to edit that file)
Code:
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
where you choose your favorite mirror from here: http://cran.r-project.org/mirrors.html
so I would personally add
Code:
deb http://streaming.stat.iastate.edu/CRAN/bin/linux/ubuntu precise/
Then run the following lines
Code:
sudo apt-get update
sudo apt-get install r-base
#optionally
sudo apt-get install r-base-dev
 

bugman

Super Moderator
Thanks Dason,

just a little unsure where to add that second line of code...

Code:
deb http://cran.csiro.au/ /CRAN/bin/linux/ubuntu precise/
 

Dason

Ambassador to the humans
Thanks Dason,

just a little unsure where to add that second line of code...
It should be
Code:
[CODE]deb http://cran.csiro.au/bin/linux/ubuntu precise/
I removed an extra space and backslash. And it should go in /etc/apt/sources.list

You could use
Code:
sudo gedit /etc/apt/sources.list
to open gedit so you can actually save the changes (you need sudo) and then just add that line to the end of the file. Then do the rest of the stuff.
 

bugman

Super Moderator
ARRRRRRRGH

Code:
Fetched 159 kB in 19s (8,183 B/s)
W: Failed to fetch http://cran.csiro.au/CRAN/bin/linux/ubuntu/precise/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
This is a new one on me. Any hints?
 

bryangoodrich

Probably A Mammal
It's a URL. Copy and paste it into your browser. It doesn't work (404 error means the document isn't found). Take off CRAN and you have a working URL. That's all these repos are. A link to where some files are located (like an FTP).
 

Dason

Ambassador to the humans
Looks like you have an extra CRAN in there. You want to have
Code:
deb http://cran.csiro.au/bin/linux/ubuntu precise/
The iastate setup has the CRAN part as the root of the mirror so it looks different compared to other mirrors. But the CRAN part isn't always a part of a mirror's address.
 

Dason

Ambassador to the humans
There needs to be a space between the final ubuntu and the precise/

Code:
deb http://cran.csiro.au/bin/linux/ubuntu precise/
That space is important

But you should be able to use the code I put in my previous two posts directly?
 

bugman

Super Moderator
Bryan, Dason,

thats so helpful you guys. Thankyou both!

So now that is set up, any additional updates will only require:

sudo apt-get update
sudo apt-get install r-base

Is that right?

That's sweet!!
 

bryangoodrich

Probably A Mammal
Did that work and install the latest version? You usually don't do it manually because your package manager (by default) periodically does checks for updates (i.e., it runs apt-get update which refreshes the indexes of the repos given your sources.list to identify updates). I know Ubuntu bugs the hell out of me by saying I have updates every day I need to look up (which amounts to clicking "okay" to update).
 

Dason

Ambassador to the humans
Did that work and install the latest version? You usually don't do it manually because your package manager (by default) periodically does checks for updates (i.e., it runs apt-get update which refreshes the indexes of the repos given your sources.list to identify updates). I know Ubuntu bugs the hell out of me by saying I have updates every day I need to look up (which amounts to clicking "okay" to update).
You can change how often it checks for updates. I think I have mine set to weekly but I rarely ever use the update manager. I just have an alias set to "uu" for "sudo apt-get update && sudo apt-get upgrade" which makes it easy enough to update my system.