Re: [R] Upgrading R means I lose my packages

2008-08-29 Thread Leon Yee
In my situation under windows xp, after I setting the environment variable R_LIBS, neither Rgui.exe nor Rterm.exe under cmd.exe doesn't know the existence of R_LIBS. After I enter the R interface, I find .libPaths() can add a new location for installed packages:

Re: [R] Upgrading R means I lose my packages

2008-08-29 Thread bartjoosen
On my windows XP machine, if you uninstall R-2.7.1, the libraries which doesn't come with the original installation remain in the folder C:\Program Files\R\R-2.7.1\library. So I first uninstall R-2.7.1, then install R-2.7.2, copy the remaining packages from the R-2.7.1 folder to the R-2.7.2

Re: [R] Upgrading R means I lose my packages

2008-08-28 Thread ONKELINX, Thierry
On a windows machine you get the same problem. Useless one uses tha same trick as Rolf suggested: don't install the packages in the default directory and set R_LIBS to that directory. Then all you need to do after an upgrade is to set R_LIBS in the new version and run update.package(checkBuilt =

Re: [R] Upgrading R means I lose my packages

2008-08-28 Thread Michael Friendly
James Milks wrote: The title says it all. Does anyone know of a way to save your packages when you upgrade to a new version of R? This may seem petty, but I'm accumulating enough packages that having to download and install each of them anew every time I install a new version of R is rather

Re: [R] Upgrading R means I lose my packages

2008-08-28 Thread Prof Brian Ripley
On Thu, 28 Aug 2008, Michael Friendly wrote: James Milks wrote: The title says it all. Does anyone know of a way to save your packages when you upgrade to a new version of R? This may seem petty, but I'm accumulating enough packages that having to download and install each of them anew

Re: [R] Upgrading R means I lose my packages

2008-08-28 Thread Don MacQueen
Speaking for myself, I think it's easier to just create a script and put it somewhere easy to remember. For example my.pkgs - c('pkg1', 'pkg2') ## and so on for my preferred packages install.packages(my.pkgs, dependencies=TRUE) Then after each upgrade just source the script. You will

Re: [R] Upgrading R means I lose my packages

2008-08-28 Thread Robert A LaBudde
At 04:12 AM 8/28/2008, ONKELINX, Thierry wrote: On a windows machine you get the same problem. Useless one uses tha same trick as Rolf suggested: don't install the packages in the default directory and set R_LIBS to that directory. Then all you need to do after an upgrade is to set R_LIBS in

[R] Upgrading R means I lose my packages

2008-08-27 Thread James Milks
The title says it all. Does anyone know of a way to save your packages when you upgrade to a new version of R? This may seem petty, but I'm accumulating enough packages that having to download and install each of them anew every time I install a new version of R is rather of a pain.

Re: [R] Upgrading R means I lose my packages

2008-08-27 Thread Rolf Turner
On 28/08/2008, at 2:02 PM, James Milks wrote: The title says it all. Does anyone know of a way to save your packages when you upgrade to a new version of R? This may seem petty, but I'm accumulating enough packages that having to download and install each of them anew every time I

Re: [R] Upgrading R means I lose my packages

2008-08-27 Thread Charilaos Skiadas
On Aug 27, 2008, at 10:40 PM, Rolf Turner wrote: On 28/08/2008, at 2:02 PM, James Milks wrote: The title says it all. Does anyone know of a way to save your packages when you upgrade to a new version of R? This may seem petty, but I'm accumulating enough packages that having to

Re: [R] Upgrading R means I lose my packages

2008-08-27 Thread Rolf Turner
On 28/08/2008, at 3:00 PM, Charilaos Skiadas wrote: On Aug 27, 2008, at 10:40 PM, Rolf Turner wrote: On 28/08/2008, at 2:02 PM, James Milks wrote: The title says it all. Does anyone know of a way to save your packages when you upgrade to a new version of R? This may seem petty, but