From tapake.kishore at hp.com  Fri Aug 27 14:26:23 2004
From: tapake.kishore at hp.com (tapake.kishore@hp.com)
Date: Fri Aug 27 14:26:27 2004
Subject: [Rd] about passing parameter to  '.R' script file (PR#7201)
Message-ID: <20040827122623.518F010494@slim.kubism.ku.dk>

Hi,

I am sorry for asking help from 'R-bugs' instead of 'R-help'.

Regards,
Kishore

-----Original Message-----
From: Uwe Ligges [mailto:ligges@statistik.uni-dortmund.de]
Sent: Friday, August 27, 2004 4:24 PM
To: Kishore, Tapake
Cc: R-bugs@biostat.ku.dk
Subject: Re: [Rd] about passing parameter to '.R' script file (PR#7201)


tapake.kishore@hp.com wrote:



*** Please send questions to R-help, not to r-bugs! ***
"Expecting your ...[apologies] on this."


> Hi,
>=20
> 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.=20
>=20
> 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.
>=20
> e.g.
> c:\\R\\rw1091\\bin\\R.exe CMD BATCH c:\\R\\rw1091\\bin\\test.R
>=20
> Expecting your suggestion on this.


What about using environment variables?

Uwe Ligges




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


[Rd] about passing parameter to '.R' script file (PR#7201)
tapake.kishore@hp.com