On Fri, 4 Feb 2005, Uwe Ligges wrote:
Urs Wagner wrote:
Hello
I would like to use the source(command) and write the output into a file. I am using
outputfile=file("output.txt", open="wt") sink(outputfile, type="output") source("input.R", echo=TRUE)
Unfortunately the result has prompted commands. How can I avoid the prompted commands data(iris), ...?
By *not* specifying echo=TRUE in source, but print()-ing the summary below.
There is also a print.eval= argument to source(), so that printing of the output can be controlled independently of echoing the input.
-thomas
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
