Changing the CRAN repository of R
After the last upgrade R didn’t seem to want to install new packages. The likely reason is that one of the UK CRAN mirrors (http://www.sourcekeg.co.uk/cran/) is not working (at least as of 21/02/08). R fails to install packages with
Warning: unable to access index for repository http://www.sourcekeg.co.uk/cran/bin/macosx/universal/contrib/2.6
To be able to choose a different mirror, just issue options(”repos”=c(CRAN=”@CRAN@”)) on the R command line and the next time a package has to be installed from CRAN you will be asked which mirror to use. See ?setRepositories and ?options for more info.
Tags: r, troubleshooting
February 21st, 2008 at 11:32 pm
I’ve just found your blog, Flo! I’ll forward it to Chemical Blogspace.
June 24th, 2009 at 11:12 pm
DUDE,
Thanks for that! It saved my life!