Re: [R] how to display the clock time in the loop

2010-07-07 Thread Jack Luo
Thanks a bunch, it works. On Thu, Jul 1, 2010 at 4:50 PM, Nikhil Kaza wrote: > explicit call to print usually works for me. > > library(audio) > for (i in 1:5){ > wait(60) > print(Sys.time()) > } > > > On Jul 1, 2010, at 4:30 PM, Matt Shotwell wrote: > > Try to flush output after printing: > > c

Re: [R] how to display the clock time in the loop

2010-07-01 Thread Nikhil Kaza
explicit call to print usually works for me. library(audio) for (i in 1:5){ wait(60) print(Sys.time()) } On Jul 1, 2010, at 4:30 PM, Matt Shotwell wrote: > Try to flush output after printing: > > cat(paste(Sys.time()),"\n"); flush(stdout()) > > On Thu, 2010-07-01 at 16:1

Re: [R] how to display the clock time in the loop

2010-07-01 Thread Matt Shotwell
Try to flush output after printing: cat(paste(Sys.time()),"\n"); flush(stdout()) On Thu, 2010-07-01 at 16:17 -0400, Jack Luo wrote: > Hi, > > I am doing some computation which is pretty time consuming, I want R to > display CPU time after each iteration using the command Sys.time(). However, > I

[R] how to display the clock time in the loop

2010-07-01 Thread Jack Luo
Hi, I am doing some computation which is pretty time consuming, I want R to display CPU time after each iteration using the command Sys.time(). However, I found that the code only began to display the CPU time after quite a while and several iterations have finished. Is there a way to ask R to dis