TclTk works fine in R, I just see that widgets are placed in the window as it is created. Is there a way to hide the window and show it only after it is created? Paste the following into R and you will see the window fill up. This is what I do not want the user to see (if possible). Thank.
require(tcltk)
dlg = tktoplevel()
for (i in 1:10) {
l = list()
for (i in 1:20) l[[i]]=tkbutton(dlg,text="SO")
do.call(tkgrid,l)
}
tkwait.window(dlg)
tkdestroy(dlg)
source
share