[R-SIG-Mac] RAqua, Darwin/X11 R, and tcltk

Thomas Lumley tlumley at u.washington.edu
Thu Oct 9 10:31:52 MEST 2003


On Thu, 9 Oct 2003, Jan de Leeuw wrote:

> What does not work:
>
>  From the terminal, use quartz(). The quartz device does not receive
> events and cannot be made the front window. This does not work
> because the API to access the windowmanager from the command line
> is hidden by Apple. Would be nice if it worked, though.

You should get
Error in quartz() : quartz() currently works only under RAqua

I put that in a couple of weeks ago because the alternative was often a
bus error.

>  From the terminal, use library(tcltk). This gives a segmentation error.
> Now I wonder what would happen if I replaced tcltk.so in
> /usr/local/lib/R
> by a  version build by using X11 tcltk. More generally, since R is
> compiled with
> both X11 and Aqua support, and since there are two copies of tcltk.so
> anyway (one in RAqua and one in /usr/local/lib/R)

Not with CRAN's RAqua, there aren't.

>						 it would make sense
> to configure in such a way that these two versions were indeed the
> Aqua and X11 versions.
>
>  From RAqua, use library(tcltk) and demo(tkdensity). This creates the
> windows nicely, but they cannot handle events. This is the one that
> really
> should work.

Yes, although it is documented that you have to use tkStartGUI.


	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-SIG-Mac mailing list