Re: [R] Tool for update

From: Thomas Lumley <tlumley_at_u.washington.edu>
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="http://cran.us.r-project.org", 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



R-help@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 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