Subject: Re: [R] Passing parameters with Rcmd BATCH
From: [email-masked]
To: [email-masked]
Cc: [email-masked]
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: [email-masked]
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._