[R] Auto update package scripts

Joe Byers joe-byers at utulsa.edu
Mon Jul 17 19:13:15 CEST 2006

I am trying to set up my home, office, and a server to auto update my R 
packages once a week.  I have a cron job on the server and a scheduled 
task on the other two pc's that are scripts.  The batch script is
    rem #!/bin/bash
    rem cron job for updating R weekly
    rem #options(echo = FALSE)
    set Rloc="\Program Files\R\bin\"
    set script=\Libraries\R\

%Rloc%R CMD BATCH %script%updatepackages.R

I also have a similar bash shell script for the server.

These scripts call the R script updatepackages.R which is
    options(echo = FALSE)

My question is there a way to pipe the two R commands in the shell 
scripts so I do not have to have a seperate R script on my pc's or my 

If anyone has a better idea, I would appreciate their comments and 

Thank you
Joe W. Byers

More information about the R-help mailing list