Dear R users,
When i call the wireframe function from within a tcltk widget, it does
not work.
Here is a sample program that shows the bug.
When you try:
is.it.a.bug()
You can see that the "curve" instruction is run but not the "wireframe" one.
Do you have an explanation about this point?
Best regards,
Pierre Lafaye de Micheaux
--
Pierre Lafaye de Micheaux
Bureau 210, bâtiment BSHM
1251 avenue centrale BP 47
38040 GRENOBLE Cedex 09
FRANCE
Tél.: 04.76.82.58.73 / Fax: 04.76.82.56.65
[EMAIL PROTECTED]
http://www.biostatisticien.eu
is.it.a.bug <- function() {
require(tcltk)
require(lattice)
OnOK <- function(...)
{
tkdestroy(tt)
curve(cos)
wireframe(cbind(rnorm(10),rnorm(10),rnorm(10)))
}
tt <- tktoplevel()
OK.but <- tkbutton(tt,text="OK",command=OnOK)
tkgrid(OK.but)
}
______________________________________________
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.