Message-ID: <4990B366.303@stats.uwo.ca>
Date: 2009-02-09T22:51:18Z
From: Duncan Murdoch
Subject: pause in function execution
In-Reply-To: <23C17762-65E0-4AC0-BA3D-CCA0B6FC186C@gmail.com>
On 09/02/2009 5:07 PM, Fuchs Ira wrote:
> I would like to have a function which gets data, does a calculation
> and prints a result and then waits some number of seconds and
> repeats. If I use Sys.sleep, the execution is pausing but the
> function output is buffered so that it all comes out when the function
> terminates. How can I get output while the function continues to
> execute?
Turn off buffering. In Windows, this is a menu item. Presumably it's
possible on whatever platform you're using.
Duncan Murdoch