Unfortunately the Tcl/Tk situation is somewhat of a zoo on OS X. OS X comes with a native (Aqua) version pre-installed, which includes bwidget and tktable. See /System/Libraries/Tcl. If you build you own Terminal or Emacs version of R, then the build process finds this Tcl/Tk and uses it. This has the additional benefit that loading the package tcltk gives you an event loop that can be used for interacting with the quartz windows. Basically R thinks it is a Wish application. You will see that loading tcltk opens a generic R application in the dock, and gives R its own Wish based menu bar (which is pretty useless).
On the other hand, using the Aqua Tcl/Tk seriously confuses the R GUI, which assumes you use the X11 version of Tcl/Tk. So if you want to use the R GUI and can stand to look at X11 widgets, you have to build your own Tcl/Tk (or get the one from CRAN) and then build X11 versions of the extensions (make sure that tclConfig and tkConfig are in /usr/local/bin and that /usr/local/bin is early in your $PATH -- and do try to stay away from fink and/or darwinports i.e. from /sw and /opt). On Nov 3, 2005, at 8:53 , Rob J Goedman wrote: > Sokol, > > Unfortunately I have never used limmaGUI nor tried to install the > extension > widget on Mac OS. > > Maybe Jan has looked at/tried these (I've taken the liberty to cc > Jan). > > I've had more questions about these, so would be interested in the > outcome. Right now I'm struggling with ggobi on Mac OS :-) to help > someone else out! > > Rob > > > On Nov 2, 2005, at 1:17 PM, Sokol Haxhinasto wrote: > >> Dear Rob, >> >> I have been trying to run limmaGUI on my mac. >> I am able to install it, however, when I run it, it gives the >> following error about tcltk extensions >> >> Any advice? >> >> "Tcl/Tk Extension(s) Not Found"- >> >> limmaGUI requires the Tcl/Tk extensions, BWidget and Tktable. >> You must have Tcl/Tk installed on your computer, not just the minimal >> Tcl/Tk installation which comes with R (for Windows). If you do have >> Tcl/Tk installed, including the extensions (e.g. using the ActiveTcl >> distribution in Windows), make sure that R can find the path to >> the Tcl >> library, e.g. C:\Tcl\lib (on Windows) or /usr/lib (on Linux/Unix) or >> /sw/lib on Mac OSX. >> >> If you don't know how to set environment variables in Windows, one >> way to >> make sure that R can find the Tcl/Tk extensions Tktable2.8 and >> bwidget1.6 >> is to copy them from your ActiveTcl installation e.g. in C:\Tcl >> \lib into >> the Tcl subdirectory of your R installation. >> If you do understand how to set environment variables... make sure >> that you >> have the TCL_LIBRARY environment variable set to the appropriate >> path, >> e.g.C:\Tcl\lib\tcl8.4 and the MY_TCLTK environment variable set to a >> non-empty string, e.g. "Yes". >> >> If using Windows, be sure to read the R for windows FAQ at >> http://www.stats.ox.ac.uk/pub/R/rw-FAQ.html >> >> If your Tcl/Tk extensions still can't be found, try addTclPath >> ("<path to >> Tcl library>"). This could be put in $HOME/.Rprofile >> >> If you need further instructions, please contact your system >> administrator >> and consider emailing r-help at stat.math.ethz.ch, or browse >> through the >> R-help archives for a similar question. >> >> The URLs for Tktable and BWidget are: >> http://tktable.sourceforge.net >> http://tcllib.sourceforge.net > === Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: [EMAIL PROTECTED] .mac: jdeleeuw ++++++ aim: deleeuwjan ++++++ skype: j_deleeuw homepages: http://gifi.stat.ucla.edu ++++++ http://www.cuddyvalley.org ------------------------------------------------------------------------ ------------------------- No matter where you go, there you are. --- Buckaroo Banzai http://gifi.stat.ucla.edu/sounds/nomatter.au ------------------------------------------------------------------------ ------------------------- [[alternative HTML version deleted]] _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
