It appears several that of my scripts are beginning to reaching maturity, so I am curious if it is possible to add an external GUI to run the scripts from this simplified GUI interface. The scripts are fairly rudimentary so the GUI only needs a few radial buttons and a could of numeric fields. I am curious if there is a typical approach for developing a GUI to run R scripts or to export R scripts in a DLL or other format so that they can be run from such a GUI. I also have not settled on a GUI development language so any suggestions there are also very much appreciated. Thank you again for any feedback and insights, especially if there is a blog or book that covers these topics.
Jason Rupert wrote:> > I am curious if there is a typical approach for developing a GUI to run R > scripts or to export R scripts in a DLL or other format so that they can > be run from such a GUI. > > I also have not settled on a GUI development language so any suggestions > there are also very much appreciated. >R Commander http://cran.r-project.org/web/packages/Rcmdr/index.html is a basic stats GUI in R that provides a way for others to make a simple GUI interface to a package. Many R packages have GUI versions that work with R Commander. It would seem to be a fairly simple way to do it. -- View this message in context: http://www.nabble.com/Running-R-scripts-from-a-GUI-interface-tp25831129p25831651.html Sent from the R help mailing list archive at Nabble.com.
There are many approaches to GUIs in R but for something quick, which I gather is your main aim here, have a look at the fgui package and also the very similar ggenericwidget function in the gWidgets package. On Sat, Oct 10, 2009 at 1:05 AM, Jason Rupert <jasonkrupert at yahoo.com> wrote:> It appears several that of my scripts are beginning to reaching maturity, so I am curious if it is possible to add an external GUI to run the scripts from this simplified GUI interface. > > The scripts are fairly rudimentary so the GUI only needs a few radial buttons and a could of numeric fields. > > I am curious if there is a typical approach for developing a GUI to run R scripts or to export R scripts in a DLL or other format so that they can be run from such a GUI. > > I also have not settled on a GUI development language so any suggestions there are also very much appreciated. > > Thank you again for any feedback and insights, especially if there is a blog or book that covers these topics. > > ______________________________________________ > 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. >
On 10/10/09, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:> There are many approaches to GUIs in R but for something quick, which > I gather is your main aim here, have a look at the fgui package and > also the very similar ggenericwidget function in the gWidgets package. >There is also rpanel for building simple GUIs. Liviu
Well, looking into the development of GUI widgets using R packages it appears that it is important to have well formed R functions. Moreover, it has made me realize my functions are probably not well formed and should be brought closer inline with R standards. By any chance is there a single R Standards document that describes recommended and acceptable R functions formatting, especially for non-trival function inputs and outputs, e.g. mixed type inputs and outputs? Thank you for any guidance that can be provided.
Thank you for recommending fgui. This package looks very promising. By any chance do you know if it is still being maintained? The URL provided for the packaged does not appear to be functional, so I was curious if this package is going to be maintained going forward. Also, do you know, once the GUI is in the format you desire, to then "export" the functionality so that you do not have to have the complete R executable and appropriate packages installed. That is, export a stand-alone TCL/TK GUI and associated libraries that contain the functionality so that the complete R executable is not necessary. Thanks again for any insights and I continue to be impressed with the capability of the contributed packages. These really are helpful for accelerating the development of useful code. --- On Sat, 10/10/09, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:> From: Gabor Grothendieck <ggrothendieck at gmail.com> > Subject: Re: [R] Running R scripts from a GUI interface > To: "Jason Rupert" <jasonkrupert at yahoo.com> > Cc: R-help at r-project.org > Date: Saturday, October 10, 2009, 7:49 AM > There are many approaches to GUIs in > R but for something quick, which > I gather is your main aim here, have a look at the fgui > package and > also the very similar ggenericwidget function in the > gWidgets package. > > On Sat, Oct 10, 2009 at 1:05 AM, Jason Rupert <jasonkrupert at yahoo.com> > wrote: > > It appears several that of my scripts are beginning to > reaching maturity, so I am curious if it is possible to add > an external GUI to run the scripts from this simplified GUI > interface. > > > > The scripts are fairly rudimentary so the GUI only > needs a few radial buttons and a could of numeric fields. > > > > I am curious if there is a typical approach for > developing a GUI to run R scripts or to export R scripts in > a DLL or other format so that they can be run from such a > GUI. > > > > I also have not settled on a GUI development language > so any suggestions there are also very much appreciated. > > > > Thank you again for any feedback and insights, > especially if there is a blog or book that covers these > topics. > > > > ______________________________________________ > > 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. > > >
The last version of fgui was produced only 6 months ago so its relatively recent and there was a JSS paper on it published during that time frame as well. Send an email to the fgui package maintainer if you want to know what he intends. The ggenericwidget function in gWidgets is very similar fgui as already mentioned so that would give you an alternative. The source code to R is freely available and Writing R Extensions manual discusses writing front ends to R but you were looking for something simple and none of that fits in with being simple. If you want something self contained forget about R, fgui, etc. and use another language. On Sat, Oct 10, 2009 at 10:38 PM, Jason Rupert <jasonkrupert at yahoo.com> wrote:> Thank you for recommending fgui. ?This package looks very promising. > > By any chance do you know if it is still being maintained? > > The URL provided for the packaged does not appear to be functional, so I was curious if this package is going to be maintained going forward. > > > Also, do you know, once the GUI is in the format you desire, to then "export" the functionality so that you do not have to have the complete R executable and appropriate packages installed. ?That is, export a stand-alone TCL/TK GUI and associated libraries that contain the functionality so that the complete R executable is not necessary. > > Thanks again for any insights and I continue to be impressed with the capability of the contributed packages. ?These really are helpful for accelerating the development of useful code. > > > > > > --- On Sat, 10/10/09, Gabor Grothendieck <ggrothendieck at gmail.com> wrote: > >> From: Gabor Grothendieck <ggrothendieck at gmail.com> >> Subject: Re: [R] Running R scripts from a GUI interface >> To: "Jason Rupert" <jasonkrupert at yahoo.com> >> Cc: R-help at r-project.org >> Date: Saturday, October 10, 2009, 7:49 AM >> There are many approaches to GUIs in >> R but for something quick, which >> I gather is your main aim here, have a look at the fgui >> package and >> also the very similar ggenericwidget function in the >> gWidgets package. >> >> On Sat, Oct 10, 2009 at 1:05 AM, Jason Rupert <jasonkrupert at yahoo.com> >> wrote: >> > It appears several that of my scripts are beginning to >> reaching maturity, so I am curious if it is possible to add >> an external GUI to run the scripts from this simplified GUI >> interface. >> > >> > The scripts are fairly rudimentary so the GUI only >> needs a few radial buttons and a could of numeric fields. >> > >> > I am curious if there is a typical approach for >> developing a GUI to run R scripts or to export R scripts in >> a DLL or other format so that they can be run from such a >> GUI. >> > >> > I also have not settled on a GUI development language >> so any suggestions there are also very much appreciated. >> > >> > Thank you again for any feedback and insights, >> especially if there is a blog or book that covers these >> topics. >> > >> > ______________________________________________ >> > 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. >> > >> > > > >