Installing RPy in Windows - Versioning Error

Discussion created by KAldous on Feb 21, 2013
Latest reply on Feb 22, 2013 by KAldous
Any Hello,

Does anyone know what versions of RPy, R, and Python are compatible?

I'm hoping to access RPy for a small, but important, part of a project.  I have R, Python 2.7.2 in ArcGIS 10.1, and RPy (ver1).  I am trying to install RPy2 to give that a try, however could only find a source code version and have never compiled software.

Here's my error:
>>> import rpy
Runtime error 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python27\ArcGIS10.1\lib\site-packages\rpy.py", line 136, in <module>
    """ % RVERSION)
RuntimeError: No module named _rpy2152

      RPy module can not be imported. Please check if your rpy
      installation supports R 2.15.2. If you have multiple R versions
      installed, you may need to set RHOME before importing rpy. For
      >>> from rpy_options import set_options
      >>> set_options(RHOME='c:/progra~1/r/rw2011/')
      >>> from rpy import *

I've followed the instructions at http://rpy.sourceforge.net/rpy/README and have:
    o Python
    o R 
    o Numeric  (http://numpy.sf.net)
    o win32all, windows extensions from Mark Hammond
   o As well as RTools

And have set my path variable as instructed here:

Any suggestions are much appreciated!