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

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to