Re: [R] Incomplete ouput with sink and split=TRUE

From: jiho <>
Date: Wed, 6 Feb 2008 15:47:31 +0100

On 2008-February-06 , at 14:45 , Duncan Murdoch wrote:
> On 2/5/2008 11:12 AM, jiho wrote:
>> Dear List,
>> I am trying to get R's terminal output to a file and to the
>> terminal at the same time, so that I can walk through some tests
>> and keep a log concurrently. The function 'sink' with the option
>> split=TRUE seems to do just that. It works fine for most output
>> but for objects of class htest, the terminal output is incomplete
>> (the lines are there but empty). Here is an example session which
>> shows the problem:
> stats:::print.htest() uses writeLines to write some of its output to
> stdout(), and it looks as though sink(split=T) misses those bits.
> I'll change print.htest to use cat(), but it is probably a sign of a
> bigger problem in sink(), and it's too late in the schedule to touch
> that for 2.6.2.
> Duncan Murdoch

Thank you for your attention on this. Given your comment I filed on a bug report on this (same subject that this email, no bug ID yet)



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 06 Feb 2008 - 14:51:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Feb 2008 - 15:30:12 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive