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 <rsa...@comcast.net> wrote:
> Hi,
>
> 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?
>
> Thanks,
> Greg
> ______________________________________________
> 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

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

Reply via email to