From chuck at sharpsteen.net  Wed Apr 20 19:34:44 2011
From: chuck at sharpsteen.net (Sharpie)
Date: Wed, 20 Apr 2011 10:34:44 -0700 (PDT)
Subject: [Rd] Patching "update.packages" to enable updating of only a
 user defined subset of packages
In-Reply-To: <BANLkTinvjw3n4QUV+v1m-U9ojdwdh7mBDA@mail.gmail.com>
References: <BANLkTinvjw3n4QUV+v1m-U9ojdwdh7mBDA@mail.gmail.com>
Message-ID: <1303320884065-3463670.post@n4.nabble.com>


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.



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