This was discussed here sometime ago. Several variants are possible. You can install the new version of R over the old one, in the same folder, this preserves the installed packages. At least, this works fine for me on Windows.
You can also store your list of packages in a simple R script and execute it once every time you upgrade the R version. Something like this: install.packages(c( "AMORE", "ggplot2", "rgdal", "rgl" [etc] )) You can also install these packages into separate directory and add the path to the .libPaths (please, refer to the documentation about library paths). This can be done, for example, in system wide startup script Rprofile.site Wensui Liu wrote: > > Dear Listers, > I am a little tired of installing all packages I want every time when > I instill a new version of R. > Say, if I have a list of packages I need to use, is it possible to > tell R to install them all for me automatically rather than I install > them one by one? > Thx. > -- View this message in context: http://www.nabble.com/install-packages-automatically-tf4419780.html#a12609660 Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.