[R] pause in function execution

Fuchs Ira irafuchs at gmail.com
Mon Feb 9 23:07:41 CET 2009

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  

More information about the R-help mailing list