Bugs item #2886591, was opened at 2009-10-26 18:02
Message generated for change (Settings changed) made by lgautier
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2886591&group_id=48422

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Source
>Group: rpy2
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: lgautier (lgautier)
Summary: type <long> not supported

Initial Comment:
Hi, It took me a bit of time to track this down but the on my system (Mac os X 
10.6 with python 2.6.1) some integers are passed as long. This fails in the 
riterface conversion. To fix this I simply modified __init__.py in robjects 
folder and added the following line within the default_py2ri function:
 elif isinstance(o, long):
        res = rinterface.SexpVector([o, ], rinterface.INTSXP)
Thanks,
Yair

----------------------------------------------------------------------

>Comment By: lgautier (lgautier)
Date: 2009-10-27 17:14

Message:
Thanks.

The branches 2.0.x and 2.1.x have now both the fix included
(so it will be in releases 2.0.8, and 2.1.0)

The final bugfix looking will is looking like follows:

elif isinstance(o, int) or isinstance(o, long):
        res = rinterface.SexpVector([o, ], rinterface.INTSXP)


(I also noted that explicit unit tests for the default conversion methods
are missing; they
will be added in the near future, hopefully)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2886591&group_id=48422

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to