[R] Announce: R from Python
walterm at cmat.edu.uy
Thu Mar 7 21:53:26 CET 2002
On Fri, Mar 08, 2002 at 07:24:27AM +1100, Tim Churches wrote:
> I can see your server now but Duncan Temple Lang was kind enough to send
> me a copy of RPy in the meantime. He commented that he thought that R
> objects in RPy aren't being protected from garbage collection but that
> was easy to fix.
Yes, Duncan is probably right, I don't fully understand the R api wrt garbage
collection. Could you or Duncan send me some indications about where it is
needed the protection from gc? Thank you.
> >>> from rpy import *
> Traceback (most recent call last):
> File "rpy_test.py", line 1, in ?
> from rpy import *
> File "/usr/local/lib/python2.1/site-packages/rpy.py", line 23, in ?
> from _rpy import * # If this fails, you need to compile the C
> ImportError: libR.so: cannot open shared object file: No such file or
> Hmmm. libR.so exists in /usr/lib/R/bin, which is in my path.
> If I issue
> ld _rpymodule.so
> then ld complains it can't find libR.so
> ld -rpath /usr/lib/R/bin _rpymodule.so
> fixes this error. But how to I tell _rpymodule.so where to look for
Perhaps you need to run ldconfig after the installation to rearrange the libraries. Then you can try
to see if all libraries were found. I think they should.
Walter Moreira <> Centro de Matematica <> Universidad de la Republica
email: walterm at cmat.edu.uy <> Home Page: http://www.cmat.edu.uy/~walterm
/OD\_ | hundred-and-one symptoms of being an internet addict:
O o . |_o_o_) | 167. You have more than 100 websites in your
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help