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