Re: [R] Rpy and RSPython

From: Weiwei Shi <helprhelp_at_gmail.com>
Date: Sat 11 Jun 2005 - 02:25:59 EST

Hi,
I tried to install RSPython, here is my problem: I load the env variables correctly as below:

#------------------------------

# R section
#------------------------------

R_HOME=/usr/lib/R
PYTHONPATH=${R_HOME}/library/RSPython/Python:${R_HOME}/library/RSPython/libs LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R_HOME}/bin

export R_HOME PYTHONPATH LD_LIBRARY_PATH

When I run python and do:
import RS

here is the error:
ImportError: /usr/lib/R/library/RSPython/libs/RSInternal.so: undefined symbol: R_GlobalEnv

I googled and found I did not have $R_HOME/bin/libR.so since I installed R from binary package.

My question is, should I have to re-install R from source? ( I think I have to, but want to make sure here :)

When I tried to re-install R by following R installation and Admin intro, and I run
./configure --enable-R-shlib
I got the following error:
configure: error: --with-x=yes (default) and X11 headers/libs are not available I don't know why.

from R,
version

platform i686-redhat-linux-gnu

arch     i686
os       linux-gnu

system i686, linux-gnu
status
major 2
minor 1.0
year 2005
month 04
day 18
language R

My third question:
can Rpy save this trouble? In my understanding, Rpy needs that libR.so too. Am I right?

Many thanks for people using python and R.

weiwei

On 6/10/05, François Pinard <pinard@iro.umontreal.ca> wrote:
> [Weiwei Shi]
>
> > I am thinking to use one of them but not sure which one is better. I
> > think Rpy cannot call python from R while the PRPython can in
> > two-directional calling. Am I right?
>
> s/PRPython/RSPython/ ? :-)
>
> This is also what I understood. Yet, despite the uni-directionality of
> RPy, this is what I chose for my personal usage (probably more handy to
> use, or easy to install -- but the main point was that RPy guaranteed
> to be more stable and never crash!). I think I recently read somewhere
> that they were plans for undusting RSPython, and then said to myself:
> "Should re-evaluate once done.".
>
> Surely that for now, RPy is quite sufficient for my simple needs.
>
> --
> François Pinard http://pinard.progiciels-bpi.ca
>

-- 
Weiwei Shi, Ph.D

"Did you always know?"
"No, I did not. But I believed..."
---Matrix III

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Jun 11 02:31:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:30 EST