Re: [R] tkRplot under macos x

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Wed 02 Mar 2005 - 06:54:54 EST

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]]
>>
>> ______________________________________________
>> 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
>>
>
> -- 
> Luke Tierney
> University of Iowa                  Phone:             319-335-3386
> Department of Statistics and        Fax:               319-335-3017
>    Actuarial Science
> 241 Schaeffer Hall                  email:      luke@stat.uiowa.edu
> Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

______________________________________________
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 Wed Mar 02 08:56:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:39 EST