Hello, I need to design a fairly simple front-end for someone to use an R script system that I've built. My thought was to just use the text based menus available in the base R package, perhaps in some kind of loop. How have other people done this? Any "best practices" that you can recommend? Thanks! -- Noah Silverman UCLA Department of Statistics 8117 Math Sciences Building Los Angeles, CA 90095 [[alternative HTML version deleted]]
On Fri, 18 May 2012, Noah Silverman wrote:> I need to design a fairly simple front-end for someone to use an R script > system that I've built. My thought was to just use the text based menus > available in the base R package, perhaps in some kind of loop.Noah, ncurses will do all you want in preparing, extending, and tuning a text-based UI. Rich -- Richard B. Shepard, Ph.D. | Integrity - Credibility - Innovation Applied Ecosystem Services, Inc. | Helping Ensure Our Clients' Futures <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
On May 19, 2012, at 01:45 , Noah Silverman wrote:> Hello, > > I need to design a fairly simple front-end for someone to use an R script system that I've built. My thought was to just use the text based menus available in the base R package, perhaps in some kind of loop. > > How have other people done this? Any "best practices" that you can recommend? >"Best practice" is a bit contentious, but several people have found that the tcltk package offers a path of low resistance. Just do library(tcltk) and e.g. demo(tkdensity) or demo(tkttest) to see whether it is of use to you (study the code for the demo). In the Windows GUI, there are also features to add items to the menubar, using winMenuAdd and friends. These aren't portable to other architectures, though.> Thanks! > > > -- > Noah Silverman > UCLA Department of Statistics > 8117 Math Sciences Building > Los Angeles, CA 90095 > > > [[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.-- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
On Sat, May 19, 2012 at 9:31 AM, peter dalgaard <pdalgd at gmail.com> wrote:> "Best practice" is a bit contentious, but several people have found that the tcltk package offers a path of low resistance. >Additionally check gWidgets. Liviu
The tkexamp function in the TeachingDemos package can be used to create a tcltk based GUI for your own functions. On Fri, May 18, 2012 at 5:45 PM, Noah Silverman <noahsilverman at ucla.edu> wrote:> Hello, > > I need to design a fairly simple front-end for someone to use an R script system that I've built. ?My thought was to just use the text based menus available in the base R package, perhaps in some kind of loop. > > How have other people done this? ?Any "best practices" that you can recommend? > > Thanks! > > > -- > Noah Silverman > UCLA Department of Statistics > 8117 Math Sciences Building > Los Angeles, CA 90095 > > > ? ? ? ?[[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.-- Gregory (Greg) L. Snow Ph.D. 538280 at gmail.com