lunedì 29 novembre 2010

Tcl/Tk for R 2.12 on MacOSX 10.4 PPC

On my previous post I wrote how to install R 2.12 on MacOSX Tiger.
Unfortunately with that method you have to use the ugly X11 terminal to open a Tcl/Tk window, because if you try to load the library with a non X11 native terminal, like MacOSX default Terminal or I-Term, you'll get something like:
> library(tcltk)
Loading Tcl/Tk interface ... done
Warning message:
In fun(...) : no display name and no $DISPLAY environment variable

This error can be avoided setting DISPLAY system variable:
> Sys.setenv=("DISPLAY"=":0")
Now, if you have X11 running, every Tcl/Tk window will call the X11 server, and this is a good thing.

Even if it works, I actually don't like this solution. I want to use MacOSX native Tcl/Tk libraries and Aqua, but i don't find a way that doesn't require R recompilation.

Nessun commento:

Posta un commento