[R] convenience question
ggrothendieck at gmail.com
Sun Oct 4 19:05:10 CEST 2009
Add a flush.console() statement after each cat.
On Sun, Oct 4, 2009 at 11:32 AM, Philip A. Viton <viton.1 at osu.edu> wrote:
> On: R 2.8.1 / Ms Windows / R-Gui-R-console
> I have a long-ish function, and to re-assure myself that it's actually
> making progress I've arranged a set of messages to the console (using cat).
> But what happens is that the messages don't actually display until the
> function has finished, which sort of negates the purpose. However, if I hit
> Return after starting the function, then all is well. I'm pretty sure that
> what's happening is that the function isn't yielding time to the operating
> system in order that messages be processed: so my question is, is there any
> way to do that within the function? Or maybe, to simulate the Return
> Philip A. Viton
> City Planning, Ohio State University
> 275 West Woodruff Avenue, Columbus OH 43210
> viton.1 at osu.edu
> R-help at r-project.org mailing list
> 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