I am trying to use the magic command in ipython, something I saw here: rpy2 slides
I have done the following:
import rpy2.ipython
%load_ext rpy2.ipython
But I get the following error:
ImportError: dlopen(/Users/XXX/anaconda/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so,
2): Library not loaded: libicuuc.54.dylib Referenced from: /Users/XXX/anaconda/lib/python2.7/site-packages/rpy2/rinterface/_rinterface.so Reason: image not found
Some relevant information:
pip install singledispatch
but the error still persistsBecause I installed R through conda, I also needed to install rpy2 through conda and not through pip. To install rpy2 through conda do the following,
conda install -c r rpy2
This worked really well. However, it is unclear why installing rpy2 through pip does not work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With