Re: [R] Plots automatically closing when using RScript

2009-06-02 Thread Rhizomorph
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:1

Re: [R] Plots automatically closing when using RScript

2009-06-01 Thread Gabor Grothendieck
Try this: Rscript -e "png('abc.png');plot(1:10);dev.off()" && abc.png On Mon, Jun 1, 2009 at 3:23 PM, Rhizomorph 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