Re: [Rd] Patching "update.packages" to enable updating of only a user defined subset of packages

From: Tal Galili <tal.galili_at_gmail.com>
Date: Thu, 21 Apr 2011 11:46:13 +0300

Hi Charlie, thanks for writing back.

Using the oldPkgs parameter wouldn't work, please see the error bellow:

> update.packages(oldPkgs =c("rpart"))

Error in update.packages(oldPkgs = c("rpart")) :   invalid 'oldPkgs'; must be a result from old.packages()

Do you think it should support this instead of adding a "subset" parameter?

Cheers,
Tal

----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili_at_gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

On Wed, Apr 20, 2011 at 8:34 PM, Sharpie <chuck_at_sharpsteen.net> wrote:

>
> Tal Galili wrote:
> >
> > Hello dear R developers,
> >
> > I recently found out that it is not possible to limit update.packages()
> to
> > update only a few packages at a time.
> >
> > The patch offered simply adds a 'subset' parameter and the statement
> > bounded
> > within "if(!missing(subset))" to implement it.
> > The code is pasted bellow (and also attached as an .r file).
> >
> > Might this patch be considered valuable to be added to R?
> >
> >
> > (in the code bellow I called the function "update.packages.2" so to not
> > mask
> > the original update.packages)
> >
> >
> > With much respect,
> > Tal
> >
>
> Hi Tal,
>
> I think if you pass a character vector in the `oldPkgs` argument of
> update.packages, it will only consider packages in that list for updating.
>
> -Charlie
>
>
> -----
> Charlie Sharpsteen
> Undergraduate-- Environmental Resources Engineering
> Humboldt State University
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Patching-update-packages-to-enable-updating-of-only-a-user-defined-subset-of-packages-tp3456738p3463670.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

        [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 21 Apr 2011 - 08:49:47 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 Thu 21 Apr 2011 - 09:40:51 GMT.

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

list of date sections of archive