Luke,
Thanks for the pointer to the postings. I still don't have it working. Here is what I have done:
>% R CMD INSTALL -l ~/Library/R/library/ tkrplot
* Installing *source* package 'tkrplot' ...
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -fno-common -g -O2 -c tcltkimg.c -o tcltkimg.o
gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o tkrplot.so tcltkimg.o -L/usr/local/lib -ltcl8.4 -L/usr/local/lib -ltk8.4 -L/usr/X11R6/lib -lX11 -framework CoreFoundation -lcc_dynamic -framework R
>% cd tkrplot/src
>% gcc --dynamic -flat_namespace -undefined suppress -L/usr/local/lib -o libtkrplot.dylib tcltkimg.o -L/usr/local/lib -ltcl8.4 -L/usr/local/lib -ltk8.4 -L/usr/X11R6/lib -lX11 -framework CoreFoundation -lcc_dynamic -framework R
>% cp libtkrplot.dylib ~/Library/R/library/tkrplot/libs/
Then in tkrplot under the R directory in the installation, I changed the file extension line to:
file.ext <- '.dylib'
Then I started R from an xterm (which is where I typically use it) and got:
> library(tcltk) #no problems here....
> library(tkrplot)
Loading required package: tcltk
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") :
[tcl] dyld: /Library/Frameworks/R.framework/Resources/bin/exec/R can't open library: Rplot (No such file or directory, errno = 2)
.
Error in library(tkrplot) : .First.lib failed for 'tkrplot'
I'm missing something here, obviously. Any other hints....
Thanks, Sean
On Feb 28, 2005, at 12:24 PM, Luke Tierney wrote:
It only works under X11; if that is what you want this posting should tell you what needs to be done:
https://stat.ethz.ch/pipermail/r-sig-mac/2004-December/001465.html
Best,
luke
On Mon, 28 Feb 2005, Sean Davis wrote:
I have not successfully gotten tkRplot to install on macos 10.3.8, R 2.0.0. Other tcltk packages work just fine. Any suggestions? I can post all the output from the compile,etc., but thought I would check the "short" version first.
Thanks, Sean
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
-- Luke Tierney University of Iowa Phone: 319-335-3386 Department of Statistics and Fax: 319-335-3017 Actuarial Science 241 Schaeffer Hall email: [EMAIL PROTECTED] Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
