[R] Moving to 1.8.1: can you transfer your package list?

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Mar 19 13:14:38 CET 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?
>

  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




More information about the R-help mailing list