[R] Lists, Vectors, TclTk

Timothy Downs timdowns at telstra.com
Mon May 9 09:26:52 CEST 2005


I am trying to create an array of tkwidgets in R, as in the following example:

require(tcltk)
tt <- tktoplevel()
cbs <- c()
for(i in 1:40) cbs[i] <- tkcheckbutton(tt)

This only stores the $ID part returned by tkcheckbutton. How would I go about doing correctly?

Thanks.

Timothy




More information about the R-help mailing list