I know there are quite a few posts on getting up and running with rpy2 on windows 7 32 bit. I have referenced a good number of them and attempted their solutions, including
With help from the comment above, I got moving in the proper direction. I created the R_HOME as a SYSTEM variable. That didn't work right away, as I was getting an R_USER not defined error.
To get everything the import above to work without error, I simply re-installed the rpy2 exectuable from here after defining the R_HOME. No errors.
In summary, key was o have R_HOME set PRIOR TO installing rpy2.
I confirm this issue is related to R_HOME
variable not defined.
In my opinion, all of these issues are caused because the developers of rpy2
package haven't documented properly the requirements of their software:
R
R_HOME
system variableR_HOME\bin
to the PATH
, in order to execute R
from python
R_HOME\bin\x64
to the PATH
, in order to load R.dll
tzlocal