[R] Help with TCL packages
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Thu Apr 17 12:14:18 CEST 2003
"Yvonnick Noel" <ynoel at tele2.fr> writes:
> Hello,
>
> I am exploring the TCLTK package under R and try to load and use additional TCL libraries (under Windows, with TCL8.3). For example :
>
> > addTclPath("C:/TCL/lib/bwidget1.5")
> > tclRequire("BWidget")
> <Tcl> 1.5
>
> Loading seems to work, but when I try to create a specific widget :
>
> # The main window appears correctly
> > top=tktoplevel()
>
> # Trying to insert a combobox
> > combo <- tkwidget(top,"BWidget::combobox")
> Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") :
> [tcl] invalid command name "BWidget::combobox".
>
> The file combobox.tcl is present in the BWidget directory.
>
> I wonder what I'm doing wrong. Any idea ?
I haven't got BWidgets around, but it seems that it likes to use
MacCapitalizationStyle, so shouldn't it be BWidget::ComboBox ??
In general, you might want to try things out in the "wish" interpreter
since R interfaces to an embedded Tcl interpreter and you're seeing
its error messages.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list