[R] Passing parameters with Rcmd BATCH
Petra Steiner
steinep at uni-muenster.de
Mon Feb 4 12:35:08 CET 2002
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list