[R] using Rprintf with NT

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri May 19 23:12:45 CEST 2000


On Fri, 19 May 2000, dave fournier wrote:

> Hi,
> 
> I'm using the Rprintf function under NT to print from a C++ DLL.
> The printing works fine -- except that nothing is printed until
> the program returns from the DLL.  Can anything be done to the code to
> fix this problem.

Yes. Call R_Process_events() periodically.  That will clear the Windows
event queue.

Just in case it is catching you, the output in the console is always
batched up waiting for the prompt. Use ^W to toggle this.  My guess is
that this _is_ catching you.  Do send complete lines (with \n) via
Rprintf if possible.


-- 
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