Re: [Rd] about passing parameter to '.R' script file (PR#7201)

From: <ligges_at_statistik.uni-dortmund.de>
Date: Fri 27 Aug 2004 - 20:52:49 EST


tapake.kishore@hp.com wrote:

> Hi,
>
> I am trying the 'R' application for generating the data for the uploaded '.gpr' file. I have written script file named 'test.R'. Currently i have hardcoded the path of uploaded '.gpr' file in the script itself.
>
> I would like to know how to pass a command line parameter to the 'test.R' script file, so that i dont have to hardcode the path and filename of the '.gpr' files.
> Also, need to access these parameters inside the script file to use the path of the uploaded file.
> I am using below command to invoke the 'R' application by using the 'test.R' script file.
>
> e.g.
> c:\\R\\rw1091\\bin\\R.exe CMD BATCH c:\\R\\rw1091\\bin\\test.R
>
> Expecting your suggestion on this.

What about using environment variables?

Uwe Ligges

> Thanks in advance.
>
> Regards,
> Kishore
>
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Aug 27 20:55:45 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:10 EST