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

Adam Naples adam.naples at yale.edu
Sat Jun 5 07:12:04 CEST 2004


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
>



More information about the R-SIG-Mac mailing list