[R] Pause with Sys.sleep

Uwe Ligges
Thu, 26 Jun 2003 19:20:01 -0000

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.