Re: [R] rscript write function

2009-02-10 Thread Applejus
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] rscript write function

2009-02-10 Thread Applejus
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.