[R] Tcl/Tk failing in JGR, but not in R for Mac OS X GUI

From: Michael Kubovy <kubovy_at_virginia.edu>
Date: Tue 27 Jun 2006 - 06:37:22 EST


Dear r-helpers,

I wonder if you can figure out why the following is working:



> sessionInfo()

Version 2.3.1 (2006-06-01)
powerpc-apple-darwin8.6.0

attached base packages:

[1] "tcltk"     "methods"   "stats"     "graphics"  "grDevices"  
"utils"     "datasets"  "base"

other attached packages:
igraph
"0.1.2"

> g <- graph.ring(10)
> tkplot(g)

Loading required package: tcltk
Loading Tcl/Tk interface ... done
[1] 1



An X window appears, and the graph can be interactively manipulated, as intended. But in JGR:

> sessionInfo()

Version 2.3.1 (2006-06-01)
powerpc-apple-darwin8.6.0

attached base packages:
[1] "graphics" "grDevices" "stats" "utils" "methods" [6] "base"

other attached packages:
igraph BHH2 JGR JavaGD rJava
"0.1.2" "0.2-1" "1.4-2" "0.3-3" "0.4-3"

> g <- graph.ring(10)
> tkplot(g)

Loading required package: tcltk
Loading Tcl/Tk interface ... Error in fun(...) : Can't find a usable init.tcl in the following directories:

     @TCL_IN_FRAMEWORK@ @TCL_IN_FRAMEWORK@ This probably means that Tcl wasn't installed properly. Error: .onLoad failed in 'loadNamespace' for 'tcltk' Error in tkplot(g) : tcl/tk library not available




Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766

WWW: http://www.people.virginia.edu/~mk9y/

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 Tue Jun 27 06:42:42 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 27 Jun 2006 - 08:12:19 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.