rpy2 is awesome.
But I was disconcerted to discover passing a numpy array to an R
function just makes things blow up ("Nothing can be done for that
type...") -- who uses rpy without numpy? :-) So I fixed it.
Strategy:
* most numpy arrays are mapped to R arrays (shape is preserved)
* a numpy ob
One question i forgot to ask:
-which python are you importing into?
Laurent
2008/11/16 Paul Geeleher <[EMAIL PROTECTED]>:
> Hi again.
>
> I did a "find / -name "*libpython*"" which should find any libpython files
> (I think). It outputted the following.
>
> /usr/lib/libpython2.4.so.1.0
> /usr/lib
Revision: 696
http://rpy.svn.sourceforge.net/rpy/?rev=696&view=rev
Author: lgautier
Date: 2008-11-16 21:13:42 + (Sun, 16 Nov 2008)
Log Message:
---
forget to update NEWS
Modified Paths:
--
rpy2/branches/version_2.0.x/NEWS
Modified: rpy2/branches/versio
Thanks for the help, guys!
laurent <[EMAIL PROTECTED]> wrote on 14.11.2008 20:52:12:
>
> Beside
> http://rpy.sourceforge.net/rpy2/doc/html/rlike.html#module-rpy2.
> rlike.functional
>
> there might only be unit tests, then the source code. ;-)
>
I should have had a look at that part of the docu
Hi again.
I did a "find / -name "*libpython*"" which should find any libpython files
(I think). It outputted the following.
/usr/lib/libpython2.4.so.1.0
/usr/lib64/libpython2.5.so
/usr/lib64/libpython2.5.so.1.0
/usr/lib64/gnome-vfs-2.0/modules/libpythonmethod.so
/usr/lib64/python2.5/config/libpyt
Revision: 695
http://rpy.svn.sourceforge.net/rpy/?rev=695&view=rev
Author: lgautier
Date: 2008-11-16 19:44:18 + (Sun, 16 Nov 2008)
Log Message:
---
rpy2.rpy_classic:
- Robj.getSexp() replace by a property Robj.sexp
doc:
- Documentation about mixed usage of rpy_classi
Is the libpython in /usr/lib being picked up instead of the new one at
runtime? can you put this aside and try again?
2008/11/15 Paul Geeleher <[EMAIL PROTECTED]>:
> Hi again,
>
> Building version 2.5.2 of Python from source (overwriting version
> 2.5.1) seems to have solved that problem alright.