Hello, All:
Does anyone know how to defeat buffering of output to the console
from Rgui? I routinely print progress reports to the console from
within Rterm running under Emacs with ESS (Emacs Speaks Statistics);
see the example below. However, when I run the same example under Rgui,
See the posting guide: this is in the FAQ which you are expected to
consult before posting. See
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-output-to-the-console-seems-to-be-delayed
and ?flush.console .
On 29/06/2012 08:01, Spencer Graves wrote:
Hello, All:
Does
Dear Prof. Ripley:
Thanks for the reply. Unfortunately, flush.console() seems to
lock up my system. I tried the following:
for(i in 1:1e7){
tst - sin(i)
if((i%%1e5)==0)cat(i, )
if((i%%1e6)==0)cat('\n')
flush.console()
}
This slows down Rgui 2.15.1 (32-bit) by
On Fri, Jun 29, 2012 at 10:15 AM, Spencer Graves
spencer.gra...@structuremonitoring.com wrote:
Dear Prof. Ripley:
Thanks for the reply. Unfortunately, flush.console() seems to lock up
my system. I tried the following:
for(i in 1:1e7){
tst - sin(i)
if((i%%1e5)==0)cat(i, )
One of the things that you should learn is how to profile (Rprof) your
code to see where time is being spent. If you did, you would have
seen that all the time is being spent in 'flush.console'. As was
pointed out in a previous response, only call it when something is
printed.
0 31.1 root
duh, of course: Thanks very much. Spencer
On 6/29/2012 11:44 AM, jim holtman wrote:
One of the things that you should learn is how to profile (Rprof) your
code to see where time is being spent. If you did, you would have
seen that all the time is being spent in 'flush.console'. As was
In the R gui for windows you can turn off buffering with cntrl-w or
through one of the menus, but for more general solutions you should
look at:
?flush.console
?winProgressBar or ?tcltk::tkProgressBar or ?txtProgressBar
On Fri, Jun 29, 2012 at 1:01 AM, Spencer Graves
7 matches
Mail list logo