RPy / R

jason jasonsmith008 at charter.net
Tue Feb 7 00:31:18 EST 2006


Hello:

I installed the following:

python-2.4.2.msi
pywin32-207.win32-py2.4.exe
R-2.2.1-win32.exe
rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe

on a Windows XP (SP2) box.

When I try to run the following (source: 
http://rpy.sourceforge.net/plotting-with-RPy.html) in IDLE
>>> from rpy import *
>>> x = range(0, 10)
>>> y = [ 2*i for i in x ]
>>> r.plot_default(x, y)

I get a window entitled "pythonw.exe" which says: pythonw.exe has 
encountered a problem and needs to close. We are sorry for the 
inconvenience.

And then in IDLE
>>> ================================ RESTART 
>>> ================================

When try the following test (from 
http://rpy.sourceforge.net/rpy/doc/manual.pdf page 5),

from rpy import *
r.wilcox_test
r.wilcox_test([1,2,3], [4,5,6])

I get for the second line:
 <Robj object at 0x0099D180>
And then for the third line I get the same error.

Is this a setup issue? Thanks for your help.





More information about the Python-list mailing list