[R] how to update installed packages to a new version of R?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Nov 6 15:51:03 CET 2002


Michael L Friendly <friendly at yorku.ca> writes:

> I've just installed R 1.6.1 and would like to install all the
> contributed packages I had used in 1.5.1.
> It's not too hard to do this manually from Rgui, but I wondered if
> there is an easier way,
> something like writing the results of installed.packages() from 1.5.1
> to a file and
> using that with install.packages() in 1.6.1, or just having 1.6.1 read
> what's in rw151/library.

I don't have a windows version handy, but how about

z <- installed.packages("path/to/rw1051/library")
zz <- z[!(z[,"Priority"] %in% c("base","recommended")]),1]
install.packages(zz,lib=...)

??

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list