Question

I installed RPY2 and when I try to import this I get the following error.

Unable to determine R version from the registry. Trying another method.

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import rpy
  File "C:\Python27\lib\site-packages\rpy.py", line 53, in <module>
    RHOME = rpy_tools.get_R_HOME()
  File "C:\Python27\lib\site-packages\rpy_tools.py", line 57, in get_R_HOME
    raise RuntimeError("Couldn't execute the R interpreter.\n"
RuntimeError: Couldn't execute the R interpreter.
Check whether R is in the execution path.

I am pretty sure I need to add C:\Program Files\R\R-3.0.2\bin to a path for python to know to use R, but I am not sure how, or what path to add it to.

I can get to the were you add it to the paths but past that I am lost. Could someone please help.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top