I would recommend just running gtkMain(), so that GTK+ blocks R. Then you
need your GUI to call gtkMainQuit() when it's time to kill R.
On Fri, Jun 12, 2009 at 6:59 AM, Olivier Nuñez <onunez@iberstat.es> wrote:
> Dear John,
>
> I have a question.
>
> When I run a RGtk code in my terminal (without using the R GUI)
>
> R --vanilla << "EOF"
> source("myRGtkcode.R")
> EOF
>
> the GTK objects do not remain on the screen.
> Until now, I "bypass" this problem using the following commands:
>
> require(tcltk)
> tkmessageBox("Press to exit")
>
> But it is not really satisfactory and the tcltk Box cannot be
> minimized (at least in Mac OSX).
>
> Any idea?
>
> Best regards. Olivier
>
>
> --
> ____________________________________
>
> Olivier G. Nuñez
> Email: onunez@iberstat.es
> Tel : +34 663 03 69 09
> Web: http://www.iberstat.es
>
> ____________________________________
>
>
>
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>
>
[[alternative HTML version deleted]]