Hello Ryan, I have good and bad news for you.
The good one is that there is a new rpy in active development. The bad one is that you should compile it yourself. You can get it here http://rpy.sourceforge.net/rpy2.html I use the regular distro of rpy under Linux x86_64. It works. I hope you get your windows to work as well. To start with, I suggest that you upgrade to R 2.8.0. By now R 2.8.1 is the official version for Fedora (linux) users. So, we can consider 2.7 rather old. Best, culpritNr1 ryan-147 wrote: > > > All- > > > > Thanks in advance for your help. > > > > I'm trying to call R function using Python in a windows environment and > have > downloaded the Rpy library however it doesn't appear to work with R > 2.7.2. > Does anyone know if a new version of Rpy exists for windows that will > work > with R and where it can be downloaded from? > > > > > > Here's an example of the error I'm getting: > > > > Traceback (most recent call last): > File "C:\Documents and Settings\rkirkish\Desktop\test.py", line 1, in > <module> > from rpy import r > File "C:\Python25\Lib\site-packages\rpy.py", line 134, in <module> > """ % RVERSION) > RuntimeError: No module named _rpy2072 > > RPy module can not be imported. Please check if your rpy > installation supports R 2.7.2. If you have multiple R versions > installed, you may need to set RHOME before importing rpy. For > example: > > >>> from rpy_options import set_options > >>> set_options(RHOME='c:/progra~1/r/rw2011/') > >>> from rpy import * > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/Calling-R-functions-from-Python-tp21377066p21378554.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.