On Tue, 22 Nov 2011, habasque wrote:

It seems that tcl/tk doesn't work fine on R-2.11 version.

As the posting guide says, there is no such version, and this list is only for current versions of R: you were asked to upgrade *before* posting.

But it does work correctly in R 2.11.0 on my Linux box.

This is all about the version of Tcl/Tk, as someone told you yesterday. Tcl/Tk is not part of R, even if on the binary platforms we provide a build (which on Windows has not changed since R 2.7.0). But we don't know what your platform is, as you ignored the posting guide.


Anyone can run this code to confirm ?

[CODE]require(tcltk)
tt <- tktoplevel()
topMenu <- tkmenu(tt)
tkconfigure(tt,menu=topMenu)
fileMenu <- tkmenu(topMenu,tearoff=FALSE)
tkadd(fileMenu,"command",label="Quit",command=function() tkdestroy(tt))
tkadd(topMenu,"cascade",label="File",menu=fileMenu)
tkfocus(tt)[/CODE]

Thanks,

--
View this message in context: 
http://r.789695.n4.nabble.com/invalid-command-name-tk-MenuDup-tp4091092p4094860.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.


--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@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.

Reply via email to