No subject
Mon Jun 6 11:45:04 CEST 2011
loaded by rpy2 anyway in order to work at all, or am I totally wrong here?
Running python 2.7.1, rpy2-2.2.2, R 2.13.0
I would appreciate any help.
Regards,
Jonas
--00163646cf807b634904aa4acfee
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Is Rcpp compatible with rpy2?<br>I would like to call a very complex R func=
tion from python. My function depends on code implemented with Rcpp. When I=
try to load Rcpp from python via<br><br>import rpy2.robjects as robjects<b=
r>
robjects.r('library(Rcpp)')<br><br>I get the following:<br><br>Erro=
r in dyn.load(file, DLLpath =3D DLLpath, ...) : <br>=A0 unable to load shar=
ed object '/home/jonas/R/x86_64-unknown-linux-gnu-library/2.13/Rcpp/lib=
s/Rcpp.so':<br>
=A0 /home/jonas/R/x86_64-unknown-linux-gnu-library/2.13/Rcpp/libs/Rcpp.so: =
undefined symbol: R_ClassSymbol<br>Error: package/namespace load failed for=
'Rcpp'<br>Traceback (most recent call last):<br>=A0 File "Rcp=
pTest.py", line 2, in <module><br>
=A0=A0=A0 robjects.r('library(Rcpp)')<br>=A0 File "/usr/local/=
lib/python2.7/dist-packages/rpy2-2.2.2dev_20110811-py2.7-linux-x86_64.egg/r=
py2/robjects/__init__.py", line 225, in __call__<br>=A0=A0=A0 res =3D =
self.eval(p)<br>
=A0 File "/usr/local/lib/python2.7/dist-packages/rpy2-2.2.2dev_2011081=
1-py2.7-linux-x86_64.egg/rpy2/robjects/functions.py", line 82, in __ca=
ll__<br>=A0=A0=A0 return super(SignatureTranslatedFunction, self).__call__(=
*args, **kwargs)<br>
=A0 File "/usr/local/lib/python2.7/dist-packages/rpy2-2.2.2dev_2011081=
1-py2.7-linux-x86_64.egg/rpy2/robjects/functions.py", line 34, in __ca=
ll__<br>=A0=A0=A0 res =3D super(Function, self).__call__(*new_args, **new_k=
wargs)<br>
rpy2.rinterface.RRuntimeError: Error: package/namespace load failed for =
9;Rcpp'<br><br>From what I understand R_ClassSymbol is supplied by libR=
.so, which should by loaded by rpy2 anyway in order to work at all, or am I=
totally wrong here?<br>
<br>Running python 2.7.1, rpy2-2.2.2, R 2.13.0<br>I would appreciate any he=
lp.<br><br>Regards,<br>Jonas<br>
--00163646cf807b634904aa4acfee--
More information about the Rcpp-devel
mailing list