Albert-Jan Roskam
2011-May-19 07:37 UTC
[R] Gui immediately closes when started from command-line
Hello, I want to run an r script that contains code for a gui (rgtk) on the command line (windows 2000, 32 bits) using R2.10.1, but the Gui disappears a few miliseconds after I started the program. What switch should I use to prevent this? I tried r.exe, rterm.exe and rscript.exe with various combinations of switches, but none of them works. TIA Cheers!! Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [[alternative HTML version deleted]]
Jonathan Gabris
2011-May-19 07:54 UTC
[R] Gui immediately closes when started from command-line
I had a problem similar to this I think. Though I cannot remember the symptoms. Something to to with the lack of possible interaction with the console as I was using R as a backend to a Qt interface. To solve the problem I used the flag: '--ess' (using '--vanilla' is also a good idea) (cf Appendix B:Invoking R, in one of the R manuals) Hope this helps. Jonathan.> Hello, > > I want to run an r script that contains code for a gui (rgtk) on the command > line (windows 2000, 32 bits) using R2.10.1, but the Gui disappears a few > miliseconds after I started the program. What switch should I use to prevent > this? I tried r.exe, rterm.exe and rscript.exe with various combinations of > switches, but none of them works. > > TIA > Cheers!! > Albert-Jan > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > All right, but apart from the sanitation, the medicine, education, wine, public > order, irrigation, roads, a fresh water system, and public health, what have the > Romans ever done for us? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > [[alternative HTML version deleted]] > > > > ______________________________________________ > 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.