Re: [R] convenience question

2009-10-04 Thread Gabor Grothendieck
Add a flush.console() statement after each cat.


On Sun, Oct 4, 2009 at 11:32 AM, Philip A. Viton  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
> keystroke?
>
> Thanks!
>
> 
> Philip A. Viton
> City Planning, Ohio State University
> 275 West Woodruff Avenue, Columbus OH 43210
> vito...@osu.edu
>
> __
> R-help@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.
>

__
R-help@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.


[R] convenience question

2009-10-04 Thread Philip A. Viton


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


Thanks!


Philip A. Viton
City Planning, Ohio State University
275 West Woodruff Avenue, Columbus OH 43210
vito...@osu.edu

__
R-help@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.