[R] Incomplete ouput with sink and split=TRUE

jiho jo.irisson at gmail.com
Wed Feb 6 15:47:31 CET 2008


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)

JiHO
---
http://jo.irisson.free.fr/



More information about the R-help mailing list