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

Ramon Diaz-Uriarte rdiaz02 at gmail.com
Tue Nov 27 09:54:13 CET 2007


Dear Jonas,

I don't understand why you want to do that. BATCH is supposed to be
for non-interactive, unnatended operation. If you want the plot to
remain there for any arbitrary time, why don't you open an R
interactive session and do:
source("cp_messung.R")

Otherwise, you'll have to think of ways of preventing the R BATCH
session from terminating immediately (e.g., via sleep, as suggested by
Henrique).

Best,

R.

On Nov 25, 2007 2:15 PM, 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.
>



-- 
Ramon Diaz-Uriarte
Statistical Computing Team
Structural Biology and Biocomputing Programme
Spanish National Cancer Centre (CNIO)
http://ligarto.org/rdiaz



More information about the R-help mailing list