[R] Interfacing R and Python in MS Windows

"Héctor Villafuerte D." hec.villafuerte at telgua.com.gt
Tue Dec 9 03:37:16 CET 2003


Hi all,
I need the power of R from within some of my Python programs...
I use debian linux (woody) at home and windows XP at work (the
latter is where I need to get things done!)

This are my packages:
R 1.8.0
Python 2.3
RSPython 0.5-3

This is what I've done:
(1) Since the Windows Binary of RSPython is compiled against
Python 2.2 I downloaded the tarball
(2) Followed the instructions in INSTALL.win (with pexports and
everything)
(3) In the RGUI "Install package(s) from local zip files..."
(4) NO errors reported during this process
(5) When I try to "Load package" in R it show this error:
 > local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in testRversion(descfields) : This package has not been installed 
properly
 See the Note in ?library

(6) In Python
 >>> import RS
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named RS

Please help me to get this excelent tools going on in Windows.
Thanks in advance,
Hector




More information about the R-help mailing list