Re: [R] Tool for update

From: Thomas Lumley <>
Date: Fri 25 Mar 2005 - 08:03:25 EST

On Thu, 24 Mar 2005, Darren Weber wrote:

> Is there a way to set a cron job to automatically update packages?
> Maybe something like this:
> $unixprompt> R --vanilla update.packages()

If you put
update.packages(repos="", ask=FALSE)

in a file update.R you can do

   R CMD BATCH update.R update.log
or even fancier, something like

   R CMD BATCH update.R update-`date --iso-8601`.log

to keep dated log files.

         -thomas mailing list PLEASE do read the posting guide! Received on Fri Mar 25 08:07:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:56 EST