[R-gui] [Rgui sig] IWidgets?

Dirk Eddelbuettel edd at debian.org
Wed Apr 14 19:34:42 CEST 2004


On Wed, Apr 14, 2004 at 12:25:32PM -0500, Erin Hodgess wrote:
> Hi R Gui People!
> 
> There are such things as IWidgets, which have things like
> radiobox (not radiobutton!) and feedback.
> 
> Does anyone know if those IWidgets are operational with the tcltk
> library, please?

Sure are, but you need to download and install them, e.g. via the
ActiveState Tcl binaries if you're on Windows. You also need to tell R about
it using the MY_TCLTK env.variable.

James Wettenhall's treasure of a site for R/tcltk has examples (though his
may be for Bwidgets), the mechanics is the same.

A simple self-contained example using the IWidgets calendar widget follows.

library(tcltk)
tclRequire("Iwidgets")
tt <- tktoplevel()
cal <- tkwidget(tt, "iwidgets::calendar")
tkconfigure(cal, command=function(...)cat(tclvalue(tkget(cal))))
tkpack(cal)


Hth, Dirk

-- 
The relationship between the computed price and reality is as yet unknown.  
                                             -- From the pac(8) manual page



More information about the R-SIG-GUI mailing list