[R] help: how to save outputs from an analysis?

Thomas Lumley thomas at biostat.washington.edu
Tue Oct 17 17:45:32 CEST 2000

On Tue, 17 Oct 2000 Pan_Yuming at aam.de wrote:

> Hi,
> i just started with R
> I could not find out how to get the output from an analysis saved into a
> file. for example, i could view a summary by keying in summary(***) after i
> run a regression analysis. but how could i save that summary into a text
> file?

If you type

  > sink("outputfile")
all output will be sent to "outputfile" until you type
  > sink("")
to get it back on screen.

A much better way to do this is to run R under Emacs using ESS, where
everything ends up in an Emacs editing buffer.  You can do this on Unix
and on Windows 9x and NT, but not currently on Win2000.


Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list