[R-SIG-Mac]Rpy on Mac -- problems

Jan de Leeuw deleeuw@stat.ucla.edu
Fri, 3 Jan 2003 21:43:05 -0800


Couple of things.

1. To do X11 graphics from Rpy you need to have XDarwin or OroborOSX
running. libR.dylib is compiled with support for the default graphics
device, which is X11.

2. Rpy does not load in pycrust or pyshell, because the symbol
_unz_copyright is defined in libR.dylib and libwx_mac-2.4.0.dylib.
This can be hacked away (by changing dounzip.c in the R distribution)
but it's not a nice solution.

3. Come to think of it, the pycrust and pyshell scripts in  
/usr/local/bin
do not work at all, because wxPython is not 100% compatible with
MacPython-2.3 installation. This is easy to fix. Just change the exec  
line
in pycrust to

exec  
/Library/Frameworks/Python.framework/Versions/Current/Resources/ 
Python.app/Contents/MacOS/python /usr/local/bin/pycrust.py

and the one in pyshell to

exec  
/Library/Frameworks/Python.framework/Versions/Current/Resources/ 
Python.app/Contents/MacOS/python /usr/local/bin/pyshell.py

4. You can run the Rpy examples using "/usr/local/bin/python  
faithful.py" etc. And you can do Rpy programming from the
command line in /usr/local/bin/python.

5. You cannot do X11 graphics from Rpy from IDLE or PythonIDE, but you  
can do png and ps and pdf and jpeg etc, by
using r.pdf(), for instance.

6. You cannot do tcl/tk graphics from Rpy, even if python is running on  
the command line. The command
r.library('tcltk') works fine, but running the demos confuses Python  
(or R or both). You can of course do your
computing in R and your tk (or wxWindows or Cocoa) plotting in Python.


===
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@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
   
------------------------------------------------------------------------ 
-------------------------