[R] controlling where *.Rout gets printed. Possible?

From: Paul Johnson <pauljohn_at_ku.edu>
Date: Fri 02 Sep 2005 - 02:51:16 EST

OK, my journey to make lab machines automagically install & update all desirable R packages is nearing an end! The only question I have now is this: How can I control where the system prints the *.Rout file that is created automatically when the R batch program runs. In "man R" I don't find any information about it. When the cron job runs "R_installAll.sh" (see below), I'd like to re-direct it to someplace that ordinary users can read.

Here's the shell script I will schedule with cron

------------R_installAll.sh ----------
R CMD BATCH /usr/local/bin/R_installAll.R

And here's the R program


# Paul Johnson <pauljohn _AT_ ku.edu> 2005-08-31
# This should update and then install all packages, except for

# ones I exclude because they don't work or we don't want them.

options(repos = "http://lib.stat.cmu.edu/R/CRAN/")

theNew <- new.packages()
failPackages <-


shouldFail <- theNew %in% failPackages

install.packages( theNew[!shouldFail],dependencies=T)

# VGAM is not in CRAN yet, but Zelig wants it.
# install.packages("VGAM", CRAN="http://www.stat.auckland.ac.nz/~yee");


Paul E. Johnson                       email: pauljohn@ku.edu
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Sep 02 03:01:43 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:01 EST