Hi Robert,
On May 12, 2005, at 4:48 PM, Robert Gentleman wrote:
I am getting something a bit weird when I do an install.packages on
tkrplot,
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class =
"tclObj") :
[tcl] dyld: /Users/rgentlem/R/R-devel/bin/exec/R malformed
library: /Users/rgentlem/R/R-devel/library/tkrplot/libs/tkrplot.so (not a
Mach-O library file, bad filetype value)
.
Error in library(tkrplot) : .First.lib failed for 'tkrplot'
can either of you confirm - or point me towards what is wrong with my
installation -
It's rather a problem with tkrplot than with your installation - it
compiles tkrplot.so as if it was a library to be loaded into R (via
dyn.load - more precisely it creates a bundle for R), but then tries to
load it as dylib using Tcl/Tk. I don't know the exact system how to load
plug-ins into Tcl/Tk, but I suspect that the tkrplot code needs to be split
into R part bundle and dylib that is loaded into Tcl/Tk. Chances are that
the bundle is actually not needed at all, because I don't see any .C/.Call
in the tkrplot R code. I have to run now, but I can have a closer look
later this week if it's of interest.
Cheers,
Simon