Hi,
I have a file fileFoo.R, say that contains these two lines, invoking
function foo that is specified in foo_details.R:
source(foo_details.R)
foo(parameter1)
I want to specify and pass parameter1 in my command line when invoking R
in linux: R --no-save fileFoo.R.
How can I do that?
(FID)
Sent: Wednesday, July 18, 2007 2:00 PM
To: R-help@stat.math.ethz.ch
Subject: [R] passing a parameter to a file from command line
Hi,
I have a file fileFoo.R, say that contains these two lines,
invoking function foo that is specified in foo_details.R:
source(foo_details.R)
foo