[R] Interfacing R and Python in MS Windows

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Dec 9 08:33:38 CET 2003


Héctor Villafuerte D. wrote:

> 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..."

If you have downloaded the tarball of RSPython, you have to install the 
package using Rcmd INSTALL, and you cannot use the RGUI which is 
designed to install binary packages.

Uwe Ligges


> (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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list