Skip to content
Prev 28721 / 63424 Next

Starting tcltk without Tk

It turns out that the behavior of starting just Tcl was actually a  
bug. Apparently the intention was to attempt to start Tk regardless of  
the DISPLAY variable, because some TclTk implementation such as Aqua  
Tcl/Tk don't require DISPLAY and thus would not be loaded. Due to a  
bug (HAVE_AQUA was not included in Rconfig.h before R 2.7.0), though,  
this was not the case. I'll leave it to tcltk users/maintainers to  
decide the right way forward. Essentially I see two options:

1) status quo: tcltk always attempts to load Tk and fails on an error
2) allow some (possibly cross-platform) way of specifying that it is  
ok to not load Tk - essentially make failure to load Tk non-fatal.

Right now there is no (semantically correct) way to inhibit the  
loading of Tk (DISPLAY is a sort of abuse and not a solution).

Cheers,
Simon

(CC to R-devel where this started...)
On May 5, 2008, at 9:12 AM, Simon Urbanek wrote: