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:
- OS: MacOS Sierra
- Python: 2.7.12
- iPython: IPython 5.1.0
- rpy2: 2.8.3
- Did the
pip install singledispatch
but the error still persists - r installed using conda
- Also have a copy of R from CRAN