[R] writing to a file
jholtman at gmail.com
Sun Nov 14 05:17:58 CET 2010
The HELP page for 'sink' is pretty clear about this:
sink() or sink(file=NULL) ends the last diversion (of the specified
type). There is a stack of diversions for normal output, so output
reverts to the previous diversion (if there was one). The stack is of
up to 21 connections (20 diversions).
On Sat, Nov 13, 2010 at 11:12 PM, Gregory Ryslik <rsaber at comcast.net> wrote:
> I have a fairly complex object that I have written a print function for.
> Thus when I do print(results), the R console shows me a whole bunch of stuff already formatted. What I want to do is to take whatever print(results) shows to console and then put that in a file. I am doing this using the sink command.
> However, I am unsure as to how to "unsink". Eg, how do I restore output to the normal console?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help