Hi list How can I pause a loop (or any other function) for a defined time? E.g. for(i in 1:5) {print(1:i); 'function to pause for 10 seconds'} Thanks for help. -- Armin Goralczyk, M.D. -- Universit?tsmedizin G?ttingen Abteilung Allgemein- und Viszeralchirurgie Rudolf-Koch-Str. 40 39099 G?ttingen -- Dept. of General Surgery University of G?ttingen G?ttingen, Germany -- http://www.gwdg.de/~agoralc
On Fri, 2007-12-28 at 19:07 +0100, Armin Goralczyk wrote:> Hi list > > How can I pause a loop (or any other function) for a defined time? E.g. > > for(i in 1:5) {print(1:i); 'function to pause for 10 seconds'} > > Thanks for help.At least on Linux, see: ?Sys.sleep Note the caveats regarding time resolution... HTH, Marc Schwartz