[R] RSPython
Juan Pablo Romero
jpablo.romero at gmail.com
Mon Mar 21 19:33:54 CET 2005
Hello
I'd like to try RSPython, but can't make it work.
I think I followed all the instructions, and made this shell script to
load python:
---------------------------------
#!/bin/sh
export R_HOME=/usr/local/lib/R
export PYTHONPATH=$R_HOME/library/RSPython/Python:$R_HOME/library/RSPython/libs
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$R_HOME/lib
python
---------------------------------
Now, when I try to 'import RS', this message appears:
>>> import RS
Error in .PythonInit() : Error in Python call: values
Error in library("RSPython") : .First.lib failed for 'RSPython'
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/R/library/RSPython/Python/RS.py", line 69, in ?
library("RSPython")
File "/usr/local/lib/R/library/RSPython/Python/RS.py", line 58, in library
return(call("library", name));
File "/usr/local/lib/R/library/RSPython/Python/RS.py", line 21, in call
return RSInternal.call(name, args, other, convert, ref)
RuntimeError: error in calling R: Error in library("RSPython") :
.First.lib failed for 'RSPython'
>>>
Perhaps I'm missing some installation step?
Regardas
Juan Pablo
More information about the R-help
mailing list