[R] how to write text into a file

Tobias Verbeke tobias_verbeke at skynet.be
Fri May 9 10:49:30 CEST 2003

> We have found that the command postscript() puts the graphics into a
> postscript file. With the command text(), text may be added into
> graphics. But the text ouput of commands like
> max(), median()... will only be put on the screen.

Not if you use 

sink("fileyouwant") to begin the redirecting into the 
                    file you want



to stop redirecting into the named file.

See ?sink

More information about the R-help mailing list