[R] passing a variable at the command line

Sebastian P. Luque spluque at gmail.com
Wed Jul 2 02:17:04 CEST 2008

Hi Erin,

On Tue, 1 Jul 2008 18:49:02 -0500,
"Erin Hodgess" <erinm.hodgess at gmail.com> 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.

Have a look at Rscript (included in R) or littler (a separate package)
for scripting?  I really like the latter.


More information about the R-help mailing list