Re: [R] passing args to R CMD BATCH in win 2000

2007-08-02 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hello and sorry to bother. Please help. I searched the archives but could not find out why --args is being ignored on Windows 2000. That does not work with R CMD BATCH, AFAIK. In fact, you want to use: Rterm --no-save --args 12 11.R 11.Rout Uwe Ligges I

Re: [R] passing args to R CMD BATCH in win 2000

2007-08-02 Thread Prof Brian Ripley
On Thu, 2 Aug 2007, Uwe Ligges wrote: [EMAIL PROTECTED] wrote: Hello and sorry to bother. Please help. I searched the archives but could not find out why --args is being ignored on Windows 2000. That does not work with R CMD BATCH, AFAIK. In fact, you want to use: Rterm --no-save

[R] passing args to R CMD BATCH in win 2000

2007-08-01 Thread Stephen . Bond
Hello and sorry to bother. Please help. I searched the archives but could not find out why --args is being ignored on Windows 2000. I try R CMD BATCH --slave 11.R 11.Rout --args 12 and 11.R has x=commandArgs(trail=T) print(x) a=x[length(x)] write.csv(a,file=13.out) q(no) the argument is not