title: OSError: cannot load library 'C:\Program Files\R\R-4.0.2\bin\x64\R.dll': error 0x7e
body: <p>I am trying to import the rpy2 library into a Jupyter Notebook but I cannot get past this error.</p>
  <p>The PATH 'C:\Program Files\R\R-4.0.2\bin\x64' has been added.</p>
  <p>This is the only version of R installed on my computer. I have completely uninstalled and reinstalled R/Rstudio/Anaconda with no luck.</p>
  <p>Here is the full error:</p>
  <pre><code>---------------------------------------------------------------------------
  OSError                                   Traceback (most recent call last)
  &lt;ipython-input-7-098f0d39b3a3&gt; in &lt;module&gt;
  ----&gt; 1 from rpy2.robjects import pandas2ri
  
  C:\Anaconda\lib\site-packages\rpy2\robjects\__init__.py in &lt;module&gt;
       14 from functools import partial
       15 import types
  ---&gt; 16 import rpy2.rinterface as rinterface
       17 import rpy2.rlike.container as rlc
       18 
  
  C:\Anaconda\lib\site-packages\rpy2\rinterface.py in &lt;module&gt;
        4 import typing
        5 from typing import Union
  ----&gt; 6 from rpy2.rinterface_lib import openrlib
        7 import rpy2.rinterface_lib._rinterface_capi as _rinterface
        8 import rpy2.rinterface_lib.embedded as embedded
  
  C:\Anaconda\lib\site-packages\rpy2\rinterface_lib\openrlib.py in &lt;module&gt;
       42     rlib = _rinterface_cffi.lib
       43 else:
  ---&gt; 44     rlib = _dlopen_rlib(R_HOME)
       45 
       46 
  
  C:\Anaconda\lib\site-packages\rpy2\rinterface_lib\openrlib.py in _dlopen_rlib(r_home)
       35         raise ValueError('The library path cannot be None.')
       36     else:
  ---&gt; 37         rlib = ffi.dlopen(lib_path)
       38     return rlib
       39 
  
  OSError: cannot load library 'C:\Program Files\R\R-4.0.2\bin\x64\R.dll': error 0x7e
  
  </code></pre>
  <p>edit:</p>
  <p>Here is the code I run to import rpy2 library:</p>
  <pre><code>from rpy2.robjects import r, pandas2ri
  </code></pre>