[R] Add notes to sink output

Greg Snow Greg.Snow at imail.org
Mon Oct 13 23:32:10 CEST 2008


An alternative is to use txtStart (and other functions mentioned in the same help page) from the TeachingDemos package. This does the sinking, but can also include the commands as well as allow you to insert comments.  The etxt variants allow you to postprocess the whole transcript into a postscript (then pdf) file including selected graphics.

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


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Michael Just
> Sent: Monday, October 13, 2008 2:02 PM
> To: r-help
> Subject: [R] Add notes to sink output
>
> Hello,
> How can I add notes (i.e. text) to a sink output?
>
> sink("test.txt")
> #This text will describe the test
> summary(x)
> sink()
>
> How can I add that text above to the sink output?
>
> Thanks,
> Michael
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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