[R-SIG-Mac] R-devel, python, and rpy

Adam Naples adam.naples at yale.edu
Sat Jun 5 15:13:09 CEST 2004


I downloaded it from rpy.sourceforge.net and just did a
'python setup.py install'
I am running 10.3.4 with the installed apple python and a few extra  
modules (PyX, PyObjC, Twisted, etc)

Thanks

-an

On Jun 5, 2004, at 1:26 AM, Jan de Leeuw wrote:

> Where and how did you get your rpy ?
>
> -- Jan
>
>
> On Jun 4, 2004, at 22:12, Adam Naples wrote:
>
>> Perhaps this is a silly question for the lis, but I can't seem to get  
>> rpy  ( http://rpy.sourceforge.net)  fully working with this version  
>> of R.  some basic functions work, but little else.
>>
>> When I try to import the rpy module in python I get the following  
>> error.
>> 		
>> 		>>> from rpy import *
>> 		Error in dyn.load(x, as.logical(local), as.logical(now)) :
>> 	        		unable to load shared library  
>> "/Library/Frameworks/R.framework/Versions/2.0.0/Resources/library/ 
>> stats/libs/stats.so":
>> 		  dlcompat: dyld: python can't open library: libR.dylib  (No such  
>> file or directory, errno = 2)
>> 		Error in dyn.load(x, as.logical(local), as.logical(now)) :
>> 		        unable to load shared library  
>> "/Library/Frameworks/R.framework/Versions/2.0.0/Resources/library/ 
>> methods/libs/methods.so":
>> 		  dlcompat: dyld: python can't open library: libR.dylib  (No such  
>> file or directory, errno = 2)
>> 		In addition: Warning message:
>> 		package stats in options("defaultPackages") was not found
>>
>>
>> but some commands still work such as
>> 		>>> r.seq(1,10)
>> 		[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>
>> but if I try to do anything fancier, I get errors and if I try to  
>> load a library it crashes.
>>
>> In the README for rpy it tells me I need to build R with the following
>> configure option    '--enable-R-shlib
>>
>> I am not at all sure what this means, should I download the source  
>> and just rebuild R locally?
>>
>> Any help or clarification would be fantastic.
>> thanks in advance
>> -an
>>
>> On Jun 3, 2004, at 7:47 PM, Jan de Leeuw wrote:
>>
>>> The new version of R-devel on http://gifi.stat.ucla.edu/pub has
>>> binaries for about 480 packages. It includes native versions
>>> of RGtk and some of its friends (RGtkConsole, RGtkViewers,
>>> RGtkScrollPane), which allow you to write portable GUI R
>>> applications (with the Aqua look on OS X). The caveat is that
>>> both RGtk and the GTK+OSX frameworks are still incomplete, so
>>> some widgets are inevitably missing.
>>>
>>> Observe that this version has no support for X11, uses Aqua
>>> Tcl/Tk, and is intended to be used from either Terminal.app
>>> or Emacs.app, and not from R.app.
>>> ===
>>> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
>>> Editor: Journal of Multivariate Analysis, Journal of Statistical  
>>> Software
>>> US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
>>> phone (310)-825-9550;  fax (310)-206-5658;  email:  
>>> deleeuw at stat.ucla.edu
>>> homepage: http://gifi.stat.ucla.edu
>>>   
>>> --------------------------------------------------------------------- 
>>> ----------------------------
>>>           No matter where you go, there you are. --- Buckaroo Banzai
>>>                    http://gifi.stat.ucla.edu/sounds/nomatter.au
>>>
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at stat.math.ethz.ch
>>> https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
>>>
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
> ===
> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
> Editor: Journal of Multivariate Analysis, Journal of Statistical  
> Software
> US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA  
> 90095-1554
> phone (310)-825-9550;  fax (310)-206-5658;  email:  
> deleeuw at stat.ucla.edu
> homepage: http://gifi.stat.ucla.edu
>   
> ----------------------------------------------------------------------- 
> --------------------------
>           No matter where you go, there you are. --- Buckaroo Banzai
>                    http://gifi.stat.ucla.edu/sounds/nomatter.au
>   
> ----------------------------------------------------------------------- 
> --------------------------
>



More information about the R-SIG-Mac mailing list