Try this. Look at ?flsuh.console if you are on windows HTH, Andy #~~~~~~~~~~~~~~~~~~~~~~~~ i<-0 while(i<100){ ## "do a lot of commands" ##"print i" cat(i, "\n") ## if using windows flush.console() i<-i+1 }