[R] everytime I download a new version of R, need I reinstall all packages?

Thomas Lumley tlumley at u.washington.edu
Wed May 17 16:19:35 CEST 2006


On Tue, 16 May 2006, Christos Hatzis wrote:

> The process that you outlined is described in the Windows R FAQ 2.8 "What's
> the best way to upgrade?".
> The same process should apply to other platforms as well, but I don't think
> it is in the general R FAQ.  Perhaps it should.

For non-Windows systems I don't think it is a Frequently asked question. 
My guess is that this is because most people will not have write access to 
the R installation and so will use a local library directory that does not 
need this sort of intervention when changing R versions.

 	-thomas


>
> -Christos
>
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Berton Gunter
> Sent: Tuesday, May 16, 2006 8:16 PM
> To: 'Michael'
> Cc: R-help at stat.math.ethz.ch
> Subject: Re: [R] everytime I download a new version of R,need I reinstall
> all packages?
>
>>
>> I think you did not answer my question... I now upgraded my main R
>> program from 2.2.1 to 2.3.0 and I removed the 2.2.1 installation, but
>> all the
>
> Wait until after you use update.packages() to remove your previous
> installation. You can keep multiple versions of R simultaneously, so this is
> no problem. That is:
>
> 1) Install new R version
> 2) Run update.packages() on old library version
> 3) Copy updated old library to new library location (or point new library
> location to old)
> 4) Remove old R version (and its libraries if you copied them)
>
> There are probably better ways to do this, which this message may stimulate.
>
>
> -- Bert
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list