On 25/02/2013 20:00, Davor Cubranic wrote:
R.app GUI 1.53 (6335 Leopard build 64-bit) and R 2.15.2 GUI 1.53 Leopard build 
64-bit (6335)

When I have a long-running call into C or C++, any output I try to print to the 
console with Rprintf or REprintf appears only after control returns to R, even 
when the text is terminated with a newline. I managed to force the output to 
appear immediately by following Rprintf's with R_FlushConsole and R_Process. Is 
this the recommended way to do it? I haven't had this issue when running R from 
Terminal or RStudio.

R_FlushConsole is the recommended way: see 'Writing R Extensions'.

Davor


--
Brian D. Ripley,                  rip...@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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to