Gabor, thanks for the quick reply. Yeah, I know that I can always save the output to a file, but the goal was to be able to leave the window up and allow the user a chance to inspect/resize it before they saved it.
Gabor Grothendieck wrote: > > Try this: > > Rscript -e "png('abc.png');plot(1:10);dev.off()" && abc.png > > On Mon, Jun 1, 2009 at 3:23 PM, Rhizomorph <khufu_lo...@yahoo.com> wrote: >> >> 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. >> >> ______________________________________________ >> R-help@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. >> > > ______________________________________________ > R-help@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. > > -- View this message in context: http://www.nabble.com/Plots-automatically-closing-when-using-RScript-tp23820355p23832039.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.