[R] How to ask a function to continuously print intermediate results

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Dec 31 22:54:49 CET 2013



On 31.12.2013 20:10, Duncan Murdoch wrote:
> On 13-12-31 2:02 PM, Jun Shen wrote:
>> Dear all,
>>
>> I have a print command to export some intermediate results from a
>> user-defined function. It takes a while to run the function and I found I
>> have to press a key to see the printed results on the screen. How can
>> I ask
>> the function to continuously print results on the screen without pressing
>> any keys? Thanks.
>
> This depends to some extent on which platform you're on.  On Windows in
> Rgui, you can disable "buffered output" using Ctrl-W or the entry in the
> "Misc" menu.  If you're using a different platform, search for "buffered
> output" in its help system.

And see ?flush.console

Best,
Uwe Ligges



> Duncan Murdoch
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list