[R] Pause with Sys.sleep

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jun 26 21:20:01 CEST 2003



Javier Muñoz wrote:
> 
> Hello!
> 
> Why the following source file:
> 
> cat("Hi")
> Sys.sleep(10)
> cat("Bye")
> 
> print BOTH strings after 10 seconds?.

I guess on Windows?
In that case: the output is buffered, see the R for Windows FAQs for
details.

Uwe Ligges

 
> I want a pause of 10 seconds between the printings.
> 
> Anyone can help me?
> 
> Thanks a lot.




More information about the R-help mailing list