Re: [R] passing a variable at the command line

From: Luke Tierney <>
Date: Wed, 02 Jul 2008 10:26:44 -0500 (CDT)

commandArgs may do what you want.



On Tue, 1 Jul 2008, Erin Hodgess wrote:

> Dear R People:
> I have used
> ./R --no-save -q -f >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
> 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:
Iowa City, IA 52242                 WWW:

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Jul 2008 - 15:58:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 16:30:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive