Subject: Re: [R] using Rprintf with NT
From: Prof Brian D Ripley (ripley@stats.ox.ac.uk)
Date: Sat 20 May 2000 - 07:12:45 EST
Message-ID: <Pine.GSO.4.05.10005192209190.4118-100000@auk.stats>
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@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:19 EST