-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object types for rpy2py_basic in rpy_classic #23
Comments
Original comment by Anonymous. It doesn't convert, it just leaves it as an R object. However, when rpy_classic runs across a LANGSXP it raises a Value Error: File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/rpy2/rpy_classic.py", line 160, in rpy2py_basic I think the problem is that LANGSXP objects have a length attribute, and so they aren't being passed to the res = Robj(obj) command, but instead are being passed to the conversion commands which don't know what to do with it. |
Original comment by Anonymous. I tried the following modification of the rpy2py_basic function that seems to work (bold indicates my additions): def rpy2py_basic(obj): |
Original report by Anonymous.
The object type LANGSXP needs to be added to the objects that the rpy2py_basic function can handle in rpy_classic
The text was updated successfully, but these errors were encountered: