Re: [R] Rpy and RSPython

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

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


# R section

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


When I run python and do:
import RS

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

I googled and found I did not have $R_HOME/bin/ 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,

platform i686-redhat-linux-gnu

arch     i686
os       linux-gnu

system i686, linux-gnu
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 too. Am I right?

Many thanks for people using python and R.


On 6/10/05, François Pinard <> 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

Weiwei Shi, Ph.D

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

______________________________________________ mailing list
PLEASE do read the posting guide!
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