[R] rscript write function

Applejus ielkhoury at gmail.com
Tue Feb 10 21:38:41 CET 2009


I have this very simple two-line script :

print ("abc");

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

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

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...)

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

More information about the R-help mailing list