[R] passing a parameter to a file from command line

2007-07-18 Thread Aydemir, Zava \(FID\)
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?

Re: [R] passing a parameter to a file from command line

2007-07-18 Thread Greg Snow
(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