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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._