[R-SIG-Mac] Buffering console output in R.app

Davor Cubranic cubranic at stat.ubc.ca
Mon Feb 25 21:00:47 CET 2013


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.

Davor


More information about the R-SIG-Mac mailing list