Enron email

Algorithmic Indexing

4 Feb 2002, 11:35 UTC

Re: [R] Passing parameters with Rcmd BATCH

From
Petra Steiner steinep@uni-muenster.de
To
Prof Brian Ripley
Cc
r-help@stat.math.ethz.ch
Bcc
r-help@stat.math.ethz.ch
Date
Mon, 4 Feb 2002 03:35:08 -0800 (PST)
Dear Prof. Ripley,

thanks for your answer. This might be useful for other novices:

Something like Rterm --restore --save < input.R > out COL=6
 does the job.

In input.R:
co <- as.numeric(Sys.getenv("COL"))

But commandArgs() works as well for Rterm.

Regards,
Petra Steiner


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._