When I try and load the R extension using:
%load_ext rpy2.ipython
I get:
C:\Users\Robert.Levy\AppData\Local\Continuum\Anaconda2\lib\site-packages\rpy2\rinterface\__init__.py in <module>()
14 R_HOME = (os.environ["R_HOME"], )
15 except KeyError:
---> 16 tmp = subprocess.check_output(("R", "RHOME"), universal_newlines=True)
17 R_HOME = tmp.split(os.linesep)
18 del(tmp)
WindowsError: [Error 2] The system cannot find the file specified
I'm running Python 2.7.1 on Windows 10 with no admin rights.
I have R installed to a local directory username\Documents\R\...
but due to lack of admin rights, there's no entry in my PATH
and no environment variable called R_HOME
.
I've added an account-level environment variable with this name, but os.environ
seems not to pick these up.
How can I proceed?