I have never understood the difference between 
> R CMD BATCH --vanilla --slave myScript.R outFile.txt
and
> R --vanilla --slave < myScript.R > outFile.txt

I use the latter method, and then the --args construction works great:
> R --vanilla --slave --args myArg1 myArg2 < myScript.R > outFile.txt

In fact, I define "R --vanilla --slave --args" to be an environment
variable $R, and then it's just
> $R myArg1 myArg2 < myScript.R > outFile.txt

-- David Brahm ([EMAIL PROTECTED])

______________________________________________
[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