From ggrothendieck at myway.com  Tue Dec 28 17:52:37 2004
From: ggrothendieck at myway.com (Gabor Grothendieck)
Date: Tue Dec 28 17:52:56 2004
Subject: [Rd] win variable in tcltk
Message-ID: <20041228165237.DEEAE12D2A@mprdmxin.myway.com>



The following gives an error message:

library(tcltk)

win <- list(env="A") 

tt <- tktoplevel()
but <- tkbutton(tt, text="X", command=expression(tkdestroy(tt)))
tkgrid(but)

however, if one comments out the win line (and removes the
win variable) then it works.  It seems that tcltk is making
use of a variable called win with a component name of env
and I just happened to have a list in my workspace called win
in which one of the components was called env.  I suggest that
this either be changed or documented.  I spent quite a large
amount of time until I realized what was going on.


[Rd] win variable in tcltk
Gabor Grothendieck