Michael Held wrote: > hi folks, > > coming from rpy I was wondering why rpy2 is trying to make so much > overhead. I was used to a convenient way of using R from Python, but the > use of robjects.FloatVector([]) and co in rpy2 is blowing up my code. > what is the reason for that?
The choice rpy2.robjects was made to go for explicit rather than implicit for vectors. In that particular case implicitness has a cost in term of performances when working with long lists (all elements must be inspected before choosing a type). > the decoupling of rpy2 and numpy is also hard to understand. http://rpy.sourceforge.net/rpy2/doc/html/numpy.html#from-numpy-to-rpy2 > I had to change from rpy to rpy2 since I had problems to install rpy for > R2.8 You could also either make rpy work with R-2.8 (C required), customize rpy2 to be the way you like (made easy by design), or use rpy2.rpy_classic (that is also an example of easy customization of rpy2). > sorry for bothering you guys. I just wondered what the reason for this > extra layer of inconvenience is... Did I miss something, or is there no real inconvenience ? L. > cheers > mike > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list