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

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Oct 17 18:44:41 CEST 2000


On Tue, 17 Oct 2000, Thomas Lumley wrote:

> 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.

But if you are on Windows you can save the whole console record to a file,
or cut-and-paste sections.  (And that's what I do on Unix, too.)

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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