[R] how to wait after plotting in BATCH mode?

Henrique Dallazuanna wwwhsd at gmail.com
Sun Nov 25 23:31:59 CET 2007


Perhaps you can use the Sys.sleep function in the final of file:

plot(rnorm(100))
Sys.sleep(5)

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O


On 25/11/2007, Jonas Stein <news at jonasstein.de> wrote:
> when i plot with the following command on console:
> $ R CMD BATCH cp_messung.R
>
> in the R-script i wrote x11() in the beginning, so it draws a nice plot on
> my screen.
>
> But sadly it disappeares after a second or two. How can i make it to wait
> until i press a key or something?
>
> thank you.
>
> --
> kind regards,
>
> Jonas Stein <news at jonasstein.de>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list