[R] Rterm
Jason Turner
jasont at indigoindustrial.co.nz
Fri May 7 15:59:49 CEST 2004
Johannes SCHNITZLER wrote:
> The second question:
> I was trying to set the working directory while I'm calling a script
> with Rterm.exe from the command line.
> Something like
> c:\Program Files\R\rw1090\bin\rterm.exe --vanilla "workingdir=c:/data/"
> <test.r --args "Arg1" "Arg2"
Not sure - if you could pass the working directory as an arg, then R can
handle it from there - use the setwd() command. What I usually do on
Un*x-like systems is to cd to the directory first, then start the R run.
Something like....
cd "my favorite dir"
R --vanilla ...
Since you're already specifying the absolute path for Rterm, the above
should work...
Cheers
Jason
More information about the R-help
mailing list