I am importing rpy2.robjects and receiving following error on executing python code in spyder IDE : File "C:\ProgramData\Anaconda33\lib\site-packages\rpy2\rinterface_lib\openrlib.py", line 37, in _dlopen_rlib rlib = ffi.dlopen(lib_path)
OSError: cannot load library 'C:\ProgramData\R\R-4.0.2\bin\x64\R.dll': error 0x7e
I have R installed and R_HOME, R_USER env variables set, also it workes till import rpy2, error occurs on importing rpy2.robjects.
Using Anaconda3-2020.02 having python version 3.7.6 and rpy2 version 3.3.4
python -m rpy2.situation yields following error :
any help with this will be appreciated.
i have tried to run same on pycharm by creating virtual env using native python 3.8 interpreter and pip installing rpy2 on it, getting same error with that too.