Skip to content
Prev 26537 / 398502 Next

calling R from python (fwd)

My immediate guess is that you do not have R compiled as a shared
library, i.e. libR.so.  Without this, you cannot use R within Python,
but only Python within R.  libR.so is where R_GlobalEnv will come
from.

So check for libR.so in the directory `R RHOME`/bin.
If it is not there, you will have to build R from source
by configuring it with
  ./configure --enable-R-shlib

Then, re-install the RSPython package and things should work.
There is a shell script  in the scripts/ directory of the
installed RSPython package that sets the relevant variables.
Just source that into your shell (i.e. source for csh/tcsh,
or . sciptName for Bash) and that should set the PYTHONLIB
and LD_LIBRARY_PATH correctly.

 D.
Agustin Lobo wrote:

  
    
Message-ID: <20021223090315.B27877@jessie.research.bell-labs.com>
In-Reply-To: <Pine.OSF.3.96.1021223115812.20781C-100000@paleo.ija.csic.es>; from alobo@ija.csic.es on Mon, Dec 23, 2002 at 12:06:07PM +0100