[R] buffering output to the console

Berry Boessenkool berryboessenkool at hotmail.com
Thu Aug 2 19:08:45 CEST 2012



Hey all,

I was wondering about the order of execution of functions and found that, in fact, I should look at the topic of buffering output to the console.
Which I did - below are some links of related topics, in case anyone wants to read up on it.

I decided to change the concerning lines in the file "Rconsole" in the "etc"-folder to
   ## Default setting for console buffering: 'yes' or 'no'
   buffered = no
which works fine.
Of course, when I send functions to someone else using a GUI console, I'll insert flush.console() at the important positions.

My question is:
should I expect serious computing time issues with this setting?
As posted in [5], calling flush.console too often takes a lot of time...


Thanks very much,
Berry Boessenkool, Potsdam


[1]
http://r.789695.n4.nabble.com/pause-in-function-execution-td882624.htm
[2]
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-output-to-the-console-seems-to-be-delayed
[3]
http://r.789695.n4.nabble.com/Obtaining-partial-output-from-a-function-that-does-not-run-to-completion-td991423.html
[4]
http://r.789695.n4.nabble.com/printing-a-variable-during-a-loop-td3006034.html
[5]
http://r.789695.n4.nabble.com/Printing-a-variable-in-a-loop-tp4634673.html
[6]
http://r.789695.n4.nabble.com/How-to-print-console-output-statements-from-within-script-or-function-tp846966.html
[7] Progress-Bars: 
http://ryouready.wordpress.com/2009/03/16/r-monitor-function-progress-with-a-progress-bar/

 		 	   		  


More information about the R-help mailing list