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 --args "12" < 11.R > 11.Rout
Or Rscript, which is designed for this sort of job. > > Uwe Ligges > > > >> 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 passed to the R process. >> 11.Rout only shows processing time and 13.out does not have the value. >> >> >> Thank you all. >> stephen >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.