Re: [R] R function, sink() and empty file

2008-08-10 Thread Prof Brian Ripley
This is what Rscript and R CMD BATCH are for. Your problem is that you forgot to print the objects in your function: auto-printing only occurs at the top level. On Sun, 10 Aug 2008, Laura Poggio wrote: Dear all, I wrote a simple script in order to put together some functions and method to be

[R] R function, sink() and empty file

2008-08-10 Thread Laura Poggio
Dear all, I wrote a simple script in order to put together some functions and method to be executed on various files I am trying to have to possibility to call the script changing few parameters in order to use the different files. I succeeded partly using the function method. However in my script