Dear Michael,
You can use cat() as follows:

sink("test.txt")
cat('Here goes your text','\n','\n')  # "\n" writes white spaces
summary(x)
sink()

See ?cat for more information.

HTH,

Jorge


On Mon, Oct 13, 2008 at 4:02 PM, Michael Just <mgjust@gmail.com> wrote:

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

	[[alternative HTML version deleted]]

