Hi Andrew (cc: sage-devel),

I just tried out rpy2 (a superfast C-level Python<-->R interface) and
the user interface is amazingly ridiculously painfully to actually
interactively use.   Evidently rpy was removed from sage and replaced
by rpy2 sometime this summer.  Anyway, with rpy we had:

sage: import rpy; rpy.sd([1..100])    # no longer works in sage

to compute the standard deviation of a list.  With rpy2 the same thing becomes:

sage: import rpy2.robjects              # using sage-4.2.1
sage: rpy2.robjects.r['sd'](rpy2.robjects.IntVector([1..100])).r_repr()
'29.011491975882'

Just look at that carefully.  Ouch.

Anyway, any thoughts?   I wonder if it would be easy to provide a
lightweight wrapper around rpy2 that would
provide a much more sensible interface.   At least the docs at
http://rpy.sourceforge.net/rpy2/doc/html/index.html are pretty good.

William



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to