Chris Evans
2004-Mar-19 11:45 UTC
[R] Moving to 1.8.1: can you transfer your package list?
I prefer to use R on a linux box and ultimately need things to end up there to serve things up using David Firth's excellent CGIwithR and apache, but one step at a time and I've installed 1.8.1 under win2k. Another question that I'm sure is simple: is there a simple way to find the list of installed libraries I had in my 1.7.1 installation and use that to drive install.packages? I've done it with a rather ugly bit of copy and paste using library() in the 1.7.1 installation and then using install.packages("xxx") on each of the package names from the first column of the output from library(). How should I have done it more elegantly gurus? TIA, Chris PSYCTC: Psychotherapy, Psychology, Psychiatry, Counselling and Therapeutic Communities; practice, research, teaching and consultancy. Chris Evans & Jo-anne Carlyle http://psyctc.org/ Email: chris at psyctc.org
Prof Brian Ripley
2004-Mar-19 12:02 UTC
[R] Moving to 1.8.1: can you transfer your package list?
On Fri, 19 Mar 2004, Chris Evans wrote:> I prefer to use R on a linux box and ultimately need things to end up > there to serve things up using David Firth's excellent CGIwithR and > apache, but one step at a time and I've installed 1.8.1 under win2k. > Another question that I'm sure is simple: is there a simple way to > find the list of installed libraries I had in my 1.7.1 installation > and use that to drive install.packages? > > I've done it with a rather ugly bit of copy and paste using library() > in the 1.7.1 installation and then using install.packages("xxx") on > each of the package names from the first column of the output from > library(). How should I have done it more elegantly gurus?installed.packages(priority="NA")[, 1] Can I suggest that with 1.9.0 imminent, you use that rather than 1.8.1. The Windows build is at http://cran.r-project.org/bin/windows/base/rdevel.html At the very least, use a version of R-patched (similar URL). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Chris Evans wrote:> I prefer to use R on a linux box and ultimately need things to end up > there to serve things up using David Firth's excellent CGIwithR and > apache, but one step at a time and I've installed 1.8.1 under win2k. > Another question that I'm sure is simple: is there a simple way to > find the list of installed libraries I had in my 1.7.1 installation > and use that to drive install.packages? > > I've done it with a rather ugly bit of copy and paste using library() > in the 1.7.1 installation and then using install.packages("xxx") on > each of the package names from the first column of the output from > library(). How should I have done it more elegantly gurus? >ip <- installed.packages(lib.loc = "pathToYourOldLibraryDir") ip <- ip[ip[,1]!="base" ,1] install.packages(ip) Uwe Ligges> TIA, > > Chris > PSYCTC: Psychotherapy, Psychology, Psychiatry, Counselling > and Therapeutic Communities; practice, research, > teaching and consultancy. > Chris Evans & Jo-anne Carlyle > http://psyctc.org/ Email: chris at psyctc.org > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html