Re: [R] Rterm

About this list Date view Thread view Subject view Author view Attachment view

From: Jason Turner (jasont@indigoindustrial.co.nz)
Date: Fri 07 May 2004 - 23:59:49 EST


Message-id: <409B9655.3010407@indigoindustrial.co.nz>

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST