Package: python-rpy2
Version: 2.2.6-1
Severity: normal
Dear Maintainer,
I'm not sure if this is a bug with rpy2 or r-cran-robustbase.
The following program will run successfully when n == 17, but breaks with n ==
18:
#!/usr/bin/python
from rpy2 import robjects as R
from rpy2.robjects.packages import importr
robustbase = importr("robustbase")
if __name__ == "__main__":
for n in (17, 18):
nums0 = list(range(n))
nums1 = list(range(n))
r_nums0 = R.FloatVector(nums0)
r_nums1 = R.FloatVector(nums1)
fit = robustbase.ltsReg(r_nums0, r_nums1)
The error given when n == 18 is:
Error in matrix(x, length(x), 1, dimnames = list(names(x),
deparse(substitute(x)))) :
length of 'dimnames' [2] not equal to array extent
Traceback (most recent call last):
File "./break_rpy2.py", line 17, in <module>
fit = robustbase.ltsReg(r_nums0, r_nums1)
File "/usr/lib/python2.7/dist-packages/rpy2/robjects/functions.py", line 82,
in __call__
return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/rpy2/robjects/functions.py", line 34,
in __call__
res = super(Function, self).__call__(*new_args, **new_kwargs)
rpy2.rinterface.RRuntimeError: Error in matrix(x, length(x), 1, dimnames =
list(names(x), deparse(substitute(x)))) :
length of 'dimnames' [2] not equal to array extent
Thanks.
Andrew
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-rpy2 depends on:
ii libblas3 [libblas3gf] 1.2.20110419-5
ii libblas3gf 1.2.20110419-5
ii libc6 2.13-37
ii liblapack3 [liblapack3gf] 3.4.1-6
ii liblapack3gf 3.4.1-6
ii python 2.7.2-10
ii python-numpy 1:1.6.2-1
ii python2.6 2.6.7-4
ii python2.7 2.7.2-8
ii r-base-core 2.15.1-4
python-rpy2 recommends no packages.
Versions of packages python-rpy2 suggests:
pn python-rpy-docs <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]