Hello,

a user of one of my packages has sent me the following problem that
apparently appears when loading the tcltk package. I'm guessing something
(Tcl/Tk? R open scripting framework?) is not installed correctly... can
someone please confirm or correct my guess? The OS is Mac 10.6.5.

Thanks,

Peter

This is what I get:
> ~ joseoter$ r
> R version 2.12.0 (2010-10-15)
> Copyright (C) 2010 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
>  Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
> [Previously saved workspace restored]
>
> > library(WGCNA)
> Loading required package: impute
> Loading required package: dynamicTreeCut
> Loading required package: flashClust
>
> Attaching package: 'flashClust'
>
> The following object(s) are masked from 'package:stats':
>
>    hclust
>
> Loading required package: qvalue
> Loading Tcl/Tk interface ... 2011-01-03 10:51:18.886 R[5858:60f] Error
> loading /Library/ScriptingAdditions/Adobe Unit
> Types.osax/Contents/MacOS/Adobe Unit Types:
>  dlopen(/Library/ScriptingAdditions/Adobe Unit
> Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.
>  Did find:
>        /Library/ScriptingAdditions/Adobe Unit
> Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in
> universal wrapper
> R: OpenScripting.framework - scripting addition
> "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable
> handlers.
> 2011-01-03 10:51:18.892 R[5858:60f] Error loading
> /Library/ScriptingAdditions/FITS.osax/Contents/MacOS/FITS:
>  dlopen(/Library/ScriptingAdditions/FITS.osax/Contents/MacOS/FITS, 262): no
> suitable image found.  Did find:
>        /Library/ScriptingAdditions/FITS.osax/Contents/MacOS/FITS: no
> matching architecture in universal wrapper
> R: OpenScripting.framework - scripting addition
> "/Library/ScriptingAdditions/FITS.osax" declares no loadable handlers.
> 2011-01-03 10:51:18.894 R[5858:60f] Error loading
> /Library/ScriptingAdditions/Numerics.osax/Contents/MacOS/Numerics:
>  dlopen(/Library/ScriptingAdditions/Numerics.osax/Contents/MacOS/Numerics,
> 262): no suitable image found.  Did find:
>        /Library/ScriptingAdditions/Numerics.osax/Contents/MacOS/Numerics:
> no matching architecture in universal wrapper
> R: OpenScripting.framework - scripting addition
> "/Library/ScriptingAdditions/Numerics.osax" declares no loadable handlers.
> 2011-01-03 10:51:18.896 R[5858:60f] Error loading
> /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions:
>  dlopen(/Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions,
> 262): no suitable image found.  Did find:
>
>  /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions:
> no matching architecture in universal wrapper
> R: OpenScripting.framework - scripting addition
> "/Library/ScriptingAdditions/QXPScriptingAdditions.osax" declares no
> loadable handlers.
> 2011-01-03 10:51:18.899 R[5858:60f] Error loading
> /Library/ScriptingAdditions/Satimage.osax/Contents/MacOS/Satimage:
>  dlopen(/Library/ScriptingAdditions/Satimage.osax/Contents/MacOS/Satimage,
> 262): no suitable image found.  Did find:
>        /Library/ScriptingAdditions/Satimage.osax/Contents/MacOS/Satimage:
> no matching architecture in universal wrapper
> R: OpenScripting.framework - scripting addition
> "/Library/ScriptingAdditions/Satimage.osax" declares no loadable handlers.
> 2011-01-03 10:51:18.903 R[5858:60f] Error loading
> /Library/ScriptingAdditions/XMLLib.osax/Contents/MacOS/XMLLib:
>  dlopen(/Library/ScriptingAdditions/XMLLib.osax/Contents/MacOS/XMLLib, 262):
> no suitable image found.  Did find:
>        /Library/ScriptingAdditions/XMLLib.osax/Contents/MacOS/XMLLib: no
> matching architecture in universal wrapper
> R: OpenScripting.framework - scripting addition
> "/Library/ScriptingAdditions/XMLLib.osax" declares no loadable handlers.
> 2011-01-03 10:51:19.016 R[5858:60f] InjectEventHandler
> done
> Loading required package: Hmisc
> Loading required package: survival
> Loading required package: splines
>
> Attaching package: 'Hmisc'
>
> The following object(s) are masked from 'package:survival':
>
>    untangle.specials
>
> The following object(s) are masked from 'package:base':
>
>    format.pval, round.POSIXt, trunc.POSIXt, units
>
>
> Package WGCNA version 0.98 loaded.
>
>
> Attaching package: 'WGCNA'
>
> The following object(s) are masked from 'package:stats':
>
>    cor
>
> Warning message:
> In fun(...) : Can't find a usable tk.tcl in the following directories:
>
>  /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tk8.5
> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts/tk8.5/Resources/Scripts
> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tk8.5
> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tk8.5/Resources/Scripts
> ./lib/tk8.5 ./lib/tk8.5/Resources/Scripts ~/Library/Tcl/tk8.5
> ~/Library/Tcl/tk8.5/Resources/Scripts /Library/Tcl/tk8.5
> /Library/Tcl/tk8.5/Resources/Scripts /System/Library/Tcl/tk8.5
> /System/Library/Tcl/tk8.5/Resources/Scripts /System/Library/Tcl/8.5/tk8.5
> /System/Library/Tcl/8.5/tk8.5/Resources/Scripts ~/Library/Frameworks/tk8.5
> ~/Library/Frameworks/tk8.5/Resources/Scripts /Library/Frameworks/tk8.5
> /Library/Frameworks/tk8.5/Resources/Scripts /System/Library/Frameworks/tk8.5
> /System/Library/Frameworks/tk8.5/Resources/Scripts ./library
>
>
>
> This probably means that tk wasn't installed properly.
> > a <- c(0,0)
> > a
> [1] 0 0
> >
>
> The other aspects of R work fine from terminal. Like I said, I haven't
> tried doing any computations with WGCNA on Terminal, and I am unsure what
> "tk" is.
>
>

	[[alternative HTML version deleted]]

