Hi all, I have looked around for help on creating GUIs for R, but haven't found anything. I would be interested in any advice or webpages that have information on the best language, tutorials etc. for creating simple GUIs. Mainly I want to do this as a heuristic exercise. Thanks for any help. Wade Wall [[alternative HTML version deleted]]
Wade, What type of GUI do you want? Do you want a full GUI that the user runs to do everything (that uses R as the computational engine)? Look at R commander, JGR, and the R plugin for Excel as possible examples. Are you more interested in a simple GUI for one specific plot or function to run from within R? Some examples include the tkexamp function in the TeachingDemos package (or many of the functions in that package for examples), the fgui package, the playwith package, the tkrplot package, and the details of the tcltk and RGtk2 packages. There are other packages that help with web interfaces (not GUIs, but still show using R as a back end). I don't know of any specific documents on how to write either type of gui, but the above can give examples to start from. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Wade Wall > Sent: Tuesday, October 07, 2008 10:56 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Creating GUIs for R > > Hi all, > > I have looked around for help on creating GUIs for R, but haven't found > anything. I would be interested in any advice or webpages that have > information on the best language, tutorials etc. for creating simple > GUIs. > Mainly I want to do this as a heuristic exercise. > > Thanks for any help. > > Wade Wall > > [[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.
Seek and ye shall find ... Check the RGUI's link on the "other" web page on CRAN. If you are on Windows, there is some simple built-in GUI functionality. ?winMenuAdd, ?select.list and the links therein will get you started there. Cheers, Bert Gunter -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Wade Wall Sent: Tuesday, October 07, 2008 9:56 AM To: r-help at stat.math.ethz.ch Subject: [R] Creating GUIs for R Hi all, I have looked around for help on creating GUIs for R, but haven't found anything. I would be interested in any advice or webpages that have information on the best language, tutorials etc. for creating simple GUIs. Mainly I want to do this as a heuristic exercise. Thanks for any help. Wade Wall [[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.
Greg Snow wrote:> Wade, > > What type of GUI do you want? > > Do you want a full GUI that the user runs to do everything (that uses R as the computational engine)? Look at R commander, JGR, and the R plugin for Excel as possible examples.Hi Wade, I am trying to introduce some users to R without much success. Probably because my own R skills are really poor! Perhaps this R plugin for Excel could help. Please, could you point me to a website where I could look for it? Thanks! Ricardo -- Ricardo Rodr?guez Your XEN ICT Team
Oopsw! Sorry, Greg of course! Thanks! [Ricardo Rodriguez] Your XEN ICT Team wrote:> Greg Snow wrote: >> Wade, >> >> What type of GUI do you want? >> >> Do you want a full GUI that the user runs to do everything (that uses >> R as the computational engine)? Look at R commander, JGR, and the R >> plugin for Excel as possible examples. > > Hi Wade, > > I am trying to introduce some users to R without much success. > Probably because my own R skills are really poor! Perhaps this R > plugin for Excel could help. > > Please, could you point me to a website where I could look for it? > Thanks! > > Ricardo > > >-- Ricardo Rodr?guez Your XEN ICT Team
http://rcom.univie.ac.at/ Or just install the RExcelInstaller package and run the installRExcel function. A book on the interface will be coming out sometime in Winter. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of [Ricardo Rodriguez] Your XEN ICT Team > Sent: Wednesday, October 08, 2008 12:48 AM > To: Greg Snow > Cc: r-help at stat.math.ethz.ch; Wade Wall > Subject: Re: [R] Creating GUIs for R > > Oopsw! Sorry, Greg of course! Thanks! > > [Ricardo Rodriguez] Your XEN ICT Team wrote: > > Greg Snow wrote: > >> Wade, > >> > >> What type of GUI do you want? > >> > >> Do you want a full GUI that the user runs to do everything (that > uses > >> R as the computational engine)? Look at R commander, JGR, and the R > >> plugin for Excel as possible examples. > > > > Hi Wade, > > > > I am trying to introduce some users to R without much success. > > Probably because my own R skills are really poor! Perhaps this R > > plugin for Excel could help. > > > > Please, could you point me to a website where I could look for it? > > Thanks! > > > > Ricardo > > > > > > > > > -- > Ricardo Rodr?guez > Your XEN ICT Team > > ______________________________________________ > 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.
Have you looked at Rcmdr & JGR? I have not tried them on Mac, but as far as I know, they work. -----Original Message----- From: "[Ricardo Rodriguez] Your XEN ICT Team" <webmaster at xen.net> To: "Greg Snow" <Greg.Snow at imail.org> Cc: "Antonio Martinez Cortizas" <antonio.martinez.cortizas at usc.es>; "r-help at stat.math.ethz.ch" <r-help at stat.math.ethz.ch>; "Wade Wall" <wade.wall at gmail.com> Sent: 10/9/08 3:07 PM Subject: Re: [R] Creating GUIs for R Thanks Greg, Greg Snow wrote:> I am not involved in the RExcel project. I have just had some discussions with the people that are, so you should contact them for specific questions. > > I believe that this currently only works on windows, there was some mention of possibly expanding it to OpenOffice so that it would be cross platform, but I have no idea if that has made it past the "good idea" stage.If we must away from Excel, don't you think that Gnumeric/R could be a nice option? Cheers, Ricardo -- Ricardo Rodr?guez Your XEN ICT Team ______________________________________________ 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 a related note... does anyone know good resources for binding a C++ program to the R library? I am thinking of writing an R GUI in Qt. I use a Mac and have looked at the Coca GUI source which binds Objective C to R. However, there is a lot of extra stuff going on- tab completion, function previewing, brace completion etc. All this makes it difficult to separate out the essence of running an R session inside a window. Basically, I would like to start with just a plain vanilla R session running inside a Qt widget. Any suggestions? Charlie Sharpsteen Undergraduate Environmental Resources Engineering Humboldt State University -- View this message in context: http://www.nabble.com/Creating-GUIs-for-R-tp19862627p19945108.html Sent from the R help mailing list archive at Nabble.com.
I risk to fall far from answering your question, but this may be of interest. On Sun, Oct 12, 2008 at 10:53 PM, cls59 <sharpsteen at mac.com> wrote:> Basically, I would like to start with just a plain vanilla R session running > inside a Qt widget. Any suggestions? >From the old User Manual [2] of SciViews-R [1]: "All programs developed by the SciViews team are distributed under an Open Source license (GPL 2 or above), as R itself. Our goal is to contribute in providing a high-quality GUI for this statistical system that can be freely used by everyone. SciViews-R is also programmed in an expendable way, which means any programmer may implement additional features, or even a different suite of fully-compatible companion applications. This way, we hope to encourage intercompatibility between the various R GUI projects. We wish others implementations, possibly in Tcl/Tk, Gtk, Java, Aqua, ? will develop. However, we anticipate great potentials of the wxPython (wxWidgets + Python) as a powerful platform-independent solution for these companion applications. R-wxPython (http://bioinf.wehi.edu.au/folders/james/wxPython/) uses RSPython), but RPy (http://www.omegahat.org/RSPython/ (http://rpy.sourceforge.net/) is a possible, although unidirectional, alternative to write a Python/wxWidgets GUI for R. We warmly encourage any initiative in this direction and will support and help any volunteer that would like to write a platform-independent version of SciViews-R with these tools. Remember: your contributions are welcome! " The Manual may prove an interesting read for those interested in R GUI creation. So could the manual [3] for the newer SciViews-K [4]. Regards, Liviu [1] http://www.sciviews.org/SciViews-R/ [2] http://www.sciviews.org/SciViews-R/oldVersion/Manual.pdf [3] http://www.sciviews.org/SciViews-K/SciViews-K_UnitManual_0.6.zip [4] http://www.sciviews.org/SciViews-K/index.html
Liviu Andronic wrote:> I risk to fall far from answering your question, but this may be of interest. > > On Sun, Oct 12, 2008 at 10:53 PM, cls59 <sharpsteen at mac.com> wrote: >> Basically, I would like to start with just a plain vanilla R session running >> inside a Qt widget. Any suggestions? >> >>From the old User Manual [2] of SciViews-R [1]: > "All programs developed by the SciViews team are distributed > under an Open Source license (GPL 2 or above), as R itself. Our goal is > to contribute in providing a high-quality GUI for this statistical system > that can be freely used by everyone. SciViews-R is also programmed in > an expendable way, which means any programmer may implement > additional features, or even a different suite of fully-compatible > companion applications. This way, we hope to encourage > intercompatibility between the various R GUI projects. We wish others > implementations, possibly in Tcl/Tk, Gtk, Java, Aqua, ? will develop. > However, we anticipate great potentials of the wxPython (wxWidgets + > Python) as a powerful platform-independent solution for these > companion applications. R-wxPython > (http://bioinf.wehi.edu.au/folders/james/wxPython/) uses RSPython), > but RPy (http://www.omegahat.org/RSPython/ > (http://rpy.sourceforge.net/) is a possible, although unidirectional, > alternative to write a Python/wxWidgets GUI for R.Rather than getting access to wxWidgets in R via Python, you might want to use the RwxWidgets package directly. (http://www.omegahat.org/RwxWidgets). As it stands, there is reasonably functionality already available in the package. I expect that it will be a complete set of bindings to all of the wxWidgets library within the next few months. The bindings will be generated programmatically and just waiting for me to finish up the more exotic parts of the code generation for C++ libraries in the RGCCTranslationUnit package. D.> We warmly > encourage any initiative in this direction and will support and help any > volunteer that would like to write a platform-independent version of > SciViews-R with these tools. Remember: your contributions are > welcome! " > > The Manual may prove an interesting read for those interested in R GUI > creation. So could the manual [3] for the newer SciViews-K [4]. > > Regards, > Liviu > > [1] http://www.sciviews.org/SciViews-R/ > [2] http://www.sciviews.org/SciViews-R/oldVersion/Manual.pdf > [3] http://www.sciviews.org/SciViews-K/SciViews-K_UnitManual_0.6.zip > [4] http://www.sciviews.org/SciViews-K/index.html > ______________________________________________ > 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.
cls59 wrote:> On a related note... does anyone know good resources for binding a C++ > program to the R library? > > I am thinking of writing an R GUI in Qt. I use a Mac and have looked at the > Coca GUI source which binds Objective C to R. However, there is a lot of > extra stuff going on- tab completion, function previewing, brace completion > etc. All this makes it difficult to separate out the essence of running an R > session inside a window. > > Basically, I would like to start with just a plain vanilla R session running > inside a Qt widget. Any suggestions?There is an RQt package (http://www.omegahat.org/RQt) which provides the framework for using Qt objects within R. It illustrates how the bindings should be programmed, provides event handling using R functions, and deals with the Qt meta object structure. I expect that I will generate the bindings for the entire Qt library within the next few months. D.> > > Charlie Sharpsteen > Undergraduate > Environmental Resources Engineering > Humboldt State University
On 12 October 2008 at 12:53, cls59 wrote: | On a related note... does anyone know good resources for binding a C++ | program to the R library? RCpp, at http://rcpp.r-forge.r-project.org, formerly known as RCppTemplate, is pretty mature and testing having been around since 2004 or 2005. Introductory documentation could be better, feedback welcome. | Basically, I would like to start with just a plain vanilla R session running | inside a Qt widget. Any suggestions? Deepayan once did just that in a test application. I am not sure if that was ever made public. Cheers, Dirk -- Three out of two people have difficulties with fractions.