I am trying to install rpy2. I have installed R, and rpy2. I try to import rpy2.robjects as robjects.
I get the following error:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
import rpy2.robjects as robjects
File "C:\Python27\lib\site-packages\rpy2\robjects\__init__.py", line 15, in <module>
import rpy2.rinterface as rinterface
File "C:\Python27\lib\site-packages\rpy2\rinterface\__init__.py", line 90, in <module>
raise RuntimeError("Unable to locate R.dll within %s" % R_HOME)
RuntimeError: Unable to locate R.dll within C:\Program Files\R\R-3.0.2\bin\x64\
I have created R_HOME as C:\Program Files\R\R-3.0.2\bin\64 in my environment variables . There is a R.dll in this location what am I doing wrong why wont this work?