[R] tcl/tk - Install problem using MacOS X / X11

From: Achim Kayser <akayser_at_envico.ch>
Date: Fri 24 Feb 2006 - 00:37:34 EST


Hi

Sorry, my first post was in German.

I tried to get Rcmdr running under MacOS X 10.4.5. While RGui pretends that tcltk is running, starting Rcmdr freezes R completely. Instead, JGR which gave me the following results:

> library(tcltk)

Loading Tcl/Tk interface ... Error in fun(...) : no display name and no $DISPLAY environment variable
Error: .onLoad failed in 'loadNamespace' for 'tcltk' Error: package/namespace load failed for 'tcltk'
>

I tried

Sys.putenv("DISPLAY"=":0")

which indeed resulted in a line in Rprofile:

## non standard settings for the R.app GUI of the Mac OS X port if(.Platform$GUI == "AQUA") {

     ## this is set to let RAqua use both X11 device and
     ## X11/TclTk
     if (Sys.getenv("DISPLAY") == "")
	Sys.putenv("DISPLAY" = ":0")

     ## this is to allow g77 compiler to work
     Sys.putenv("PATH" = paste(Sys.getenv("PATH"),":/usr/local/bin",sep 
= ""))
}## end "Aqua"

Anay ideas what`s wrong ?

Regards

Achim

Hallo !

Ich habe versucht Rcmdr unter MacOSX 10.4.5 zu installieren. RGui zeigt an, dass tcl/tk laufen. Bei Aufruf von Rcmdr friert R jedoch komplett ein. JGR zeigt im Paketmanager dagegen an, dass tcl/tk nicht gestartet werden konnte und spuckt folgende Meldung aus:

> library(tcltk)
Loading Tcl/Tk interface ... Error in fun(...) : no display name and no $DISPLAY environment variable
Error: .onLoad failed in 'loadNamespace' for 'tcltk' Error: package/namespace load failed for 'tcltk' >

Ideen ?

Achim



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 24 00:52:12 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:40 EST