Issue with Rmagics in IPython Notebook:
%load_ext rpy2.ipython
import numpy as np
A = np.arange(20)
%R -i A
%R mean(A)
returns the the error:
AttributeError: 'numpy.ndarray' object has no attribute 'typeof'
when I use %load_ext rmagic in place of %load_ext rpy2.ipython I get the same error message. Any insight or help would be appreciated.
Software and System Summary:
- IPython version 2.0.0
- python version 2.7.3
- rpy2 version 3.4.2
- R version 3.3.1
- Ubuntu 12.04.4 Precise Pangolin