[R] Delayed output?

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Aug 10 16:04:13 CEST 2000


> From: "Yves Gauvreau" <cyg at sympatico.ca>
> Date: Thu, 10 Aug 2000 09:03:51 -0400

> I'm using R1.1 GUI on NT4 box, I noticed that when I use functions that
> print some output during processing I see this output only after the
> function as terminated. If during the processing I activate another
> program's window that overlay completely the R window and come back to R
> then I'll see all the output up to the current state.
> 
> My guess is that the internal functions that output to the console aren't
> refreshing the console window with a call to InvalidateWindowRectangle or
> whatever is appropriate.

That's deliberate, and mentioned in the rw-FAQ.

   6.3 When using Rgui the output to the console seems to be delayed.
   ==================================================================
   
   This is deliberate: the console output is buffered and re-written in
   chunks to be less distracting. You can turn buffering off or on from
   the Misc menu or the right-click menu: <Ctrl-W> toggles the setting.
   
   If you are sourcing R code or writing from a function, there is another
   option. A call to the R function `flush.console()' will write out the
   buffer and so update the console.


You will normally see no output until there is an input prompt or
there is a Windows repaint event.

> It would be nice if this would be corrected in future release.

It's a feature!


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list