[R] passing a variable at the command line
Luke Tierney
luke at stat.uiowa.edu
Wed Jul 2 17:26:44 CEST 2008
commandArgs may do what you want.
Best,
luke
On Tue, 1 Jul 2008, Erin Hodgess wrote:
> Dear R People:
>
> I have used
>
> ./R --no-save -q -f e.in >stuff.out
>
> with great success on SUSE10.1 with R-2.7.1.
>
> My question is, please: is there a way to pass in a variable to the
> e.in file? I'm fairly sure that the answer is no, but thought I'd
> double check.
>
> Thanks in advance,
> Sincerely,
> Erin
>
>
>
--
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa Phone: 319-335-3386
Department of Statistics and Fax: 319-335-3017
Actuarial Science
241 Schaeffer Hall email: luke at stat.uiowa.edu
Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
More information about the R-help
mailing list