Re: [Rd] Odd tcltk and Rattle interference on MS/Windows

2008-04-05 Thread Prof Brian Ripley
I don't recognize your account. R under Windows has an entry point R_tcldo, which is *private* and (as its name implies) for use by R with Tcl. There is no documentation that I am aware of that suggests that it is available to packages, and it is in no header and not in 'Writing R Extensions'.

Re: [Rd] Odd tcltk and Rattle interference on MS/Windows

2008-04-05 Thread Graham Williams
Thanks for the information. A little more testing. With R 2.6.2 on Debian I don't get John's crash on the tkdestroy. With R 2.6.2 on MS/Windows the "library(tcltk)" causes the gtkWindow to freeze. The tkdestroy works just fine. I haven't had a chance to test on the imminent R 2.7.0 yet. The

Re: [Rd] Odd tcltk and Rattle interference on MS/Windows

2008-04-05 Thread Michael Lawrence
Hi Graham, Your guess is right. The event loop stuff is handled differently on Windows than on Unix-like OSes. There is a hook, called tcl_do that is hard-coded into the R Windows GUI. It is called whenever the console is idle. RGtk2 is able to hook into that to process GTK+ events. The problem is