$ export R_HOME=/usr/lib/R
$ export PYTHONPATH=${R_HOME}/library/RSPython/Python
$ export PYTHONPATH=${PYTHONPATH}:${R_HOME}/library/RSPython/libs
$ export LD_LIBRARY_PATH=${R_HOME}/bin
$ python
Python 2.2.1 (#2, Sep 13 2002, 23:25:07)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import RS
Initialized R-Python interface package.
>>> RS.call("rnorm", 10)
[-0.65567988872831473, 0.67905969371540564, -1.1444361954473865,
0.81452303045337249, 0.72703311800839554, 0.86401079894005484,
-2.0267500136837922, 1.3879521193129922, -0.59819064121768595,
1.1045450495203162]
>>> RS.call("plot", [1,2,3,4])
>>> RS.call("plot", RS.call("rnorm",10))
>>> ^D
|