[R] rscript write function

Applejus ielkhoury at gmail.com
Tue Feb 10 22:01:16 CET 2009


OK,
obviously that was a silly question...
SOLUTION: just specify the path in the write function...!

Sorry ! 


Applejus wrote:
> 
> Hi,
> 
> I have this very simple two-line script :
> 
> test.r:
> --------
> print ("abc");
> write("def","test.txt");
> 
> When run with rscript.exe --vanilla test.r (or just rscript.exe test.r), I
> get the "abc" output in the shell but no file is created in the
> directory....
> 
> I noticed that the only time the test.txt gets written is when the test.r
> script is placed in the bin directory where rscript.exe resides. I want a
> way to execute my test.r script and output the corresponding file in
> another directory, without having to copy the rscript.exe and dlls to that
> directory.
> 
> I hope there is a way!! (I have this constraint because I am developping a
> website that connects with R and my script resides in a session folder
> created dynamically for every user...)
> 
> Thanks!
> 

-- 
View this message in context: http://www.nabble.com/rscript-write-function-tp21940621p21942388.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list