[R] Output to screen and file at the same time

Greg Snow Greg.Snow at imail.org
Thu Aug 13 17:41:28 CEST 2009

You may also want to look at ?TeachingDemos::txtStart as an alternative to sink, one advantage is that the commands as well as the output can be included.  With a little more work you can also include graphical output into a transcript file.

Hope this helps,

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Michael Knudsen
> Sent: Thursday, August 13, 2009 7:13 AM
> To: Gabor Grothendieck
> Cc: r help
> Subject: Re: [R] Output to screen and file at the same time
> On Thu, Aug 13, 2009 at 3:07 PM, Gabor
> Grothendieck<ggrothendieck at gmail.com> wrote:
> > See the split argument in ?sink
> Thanks! I actually did check the manual for sink (it's true!) but
> somehow I managed to overlook the split argument.
> --
> Michael Knudsen
> micknudsen at gmail.com
> http://lifeofknudsen.blogspot.com/
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list