[R] Plots automatically closing when using RScript

Rhizomorph khufu_lotus at yahoo.com
Mon Jun 1 21:23:47 CEST 2009


I would like to be able to run an R script from the command line using
RScript.exe. The problem is, my script generates some plots which are being
automatically closed as soon as the script reaches its end. Is there a way
to force the plot windows to remain open until the user explicitly closes
them?

Example:

Rscript --vanilla -e "plot(1:100)"

The above line will create a plot that exists for a split second and then is
gone - this seems like completely retarded behavior for a programming
language that is so dependent upon plots.
-- 
View this message in context: http://www.nabble.com/Plots-automatically-closing-when-using-RScript-tp23820355p23820355.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list