I am so embarrassed. I now see the syntax error in my original batch
file; and if I correct it, it works just fine. I don't know why I
didn't get a DOS error with it; if I had, it obviously would have saved
me from reporting it as an R bug. My apologies for causing trouble --
it definitely i
Rterm (sic) does return an error status. You have not provided a
reproducible example, so here is one (done in tcsh)
% echo 'q()' | rterm --vanilla --slave || echo failed
% echo 'q(status=3)' | rterm --vanilla --slave || echo failed
failed
% echo 'stop("test")' | rterm --vanilla --slave || echo
I have an XP batch file that runs sweave and figures out whether to proceed
by comparing the file dates on the .Rnw and .tex files (and also on the
.tex and .pdf files). It will be included in the next version of the
batchfiles project:
http://cran.r-project.org/contrib/extra/batchfiles/
hope
Full_Name: Russell V. Lenth
Version: 2.3.1
OS: Windows XP Pro
Submission from: (NULL) (128.255.132.188)
I wrote a simple .BAT file to run the Sweave function on a file (via RTerm),
then run pdflatex on the result (after RTerm exits). The issue is that if an
error condition occurs in RTerm, it is