[R] Gui immediately closes when started from command-line

Jonathan Gabris jonathan at k-m-p.nl
Thu May 19 09:54:13 CEST 2011


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.



More information about the R-help mailing list