Re: [Rd] No exit codes from RTerm (Windows) (PR#9296)

2006-10-14 Thread russell-lenth
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

Re: [Rd] No exit codes from RTerm (Windows) (PR#9296)

2006-10-14 Thread ripley
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

Re: [Rd] No exit codes from RTerm (Windows) (PR#9296)

2006-10-13 Thread Gabor Grothendieck
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

[Rd] No exit codes from RTerm (Windows) (PR#9296)

2006-10-13 Thread russell-lenth
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