I don't know about RGtk2, never tried it, but I assume it is similar to Tcl/Tk situation: you need to open an R console to make it work. My approach works, only because I am using the package shiny, and R's web server can be started via a script in the terminal. I might be wrong of course, but I haven't been able to start a GUI from a script, other than using a webpage,
Package shiny is very nice, and since it can be started with a script, it means that one can also use the normal R console in parallel, if needed. Otherwise, if started from the R console, R will be busy listening to the web server: it's either R, or the GUI, but not both in the same time. On Sat, Feb 20, 2016 at 8:50 AM, Zahra Samadi <simon0...@yahoo.com> wrote: > My function returns a RGtk2 window. It's not important if my GUI opens in > a browser, I just want to have a file that when clicked, my GUI opens. > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > -- Adrian Dusa University of Bucharest Romanian Social Data Archive Soseaua Panduri nr.90 050663 Bucharest sector 5 Romania [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.