Re: [R] upgrade to 2.5

From: bogdan romocea <br44114_at_gmail.com>
Date: Thu, 03 May 2007 08:39:03 -0400


I find it easier to install all the packages again:

#---run in previous version
packages <- installed.packages()[,"Package"] save(packages, file="Rpackages")

#---run in new version
load("Rpackages")
for (p in setdiff(packages, installed.packages()[,"Package"])) install.packages(p)

> -----Original Message-----
> From: r-help-bounces_at_stat.math.ethz.ch
> [mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of Robert
> A LaBudde
> Sent: Wednesday, May 02, 2007 5:39 PM
> To: R-help_at_stat.math.ethz.ch
> Subject: Re: [R] upgrade to 2.5
>
> At 01:41 PM 5/2/2007, you wrote:
> >On 5/2/07, Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com> wrote:
> > >
> > >
> > > Iasonas Lamprianou said the following on 5/2/2007 8:25 AM:
> > > > Hi I am using R version 2.4.1. How can I upgrade to version 2.5
> > without having to install all the packages again?
> > > > Thanks
> > > > Jason
> > > >
> > >
> > > You may find the following link relevant.
> > >
> > > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/75359.html
> > >
> >
> >if you use Windows XP.
>
> This link was useful to me, as I am new to R. (Win2000, R-2.5.0)
>
> What I have been doing is using a file compare utility (Beyond
> Compare in my case) to move files in the old "library" directory to
> the new one, if the files are missing in the new one. Then I perform
> an update.packages command.
>
> This procedure appears to work without problem.
>
> It would seem much preferable to have all packages saved in an
> installation-independent directory, instead of a "library" directory
> under R's installation directory. Then, of course, no update would be
> necessary.
>
> I can't find how this option is settable in R, other than a direct
> argument to library() or install.package().
>
> How does one shift the R default libraries location to a
> particular directory?
>
> Thanks.
>
> ================================================================
> Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral_at_lcfltd.com
> Least Cost Formulations, Ltd. URL: http://lcfltd.com/
> 824 Timberlake Drive Tel: 757-467-0954
> Virginia Beach, VA 23464-3239 Fax: 757-467-2947
>
> "Vere scire est per causas scire"

>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>



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 and provide commented, minimal, self-contained, reproducible code. Received on Thu 03 May 2007 - 12:56:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 May 2007 - 22:31:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.