[R] Getting .Python to Work Under Windows

Jess Mar jcm at maths.uq.edu.au
Sat Sep 28 04:13:16 CEST 2002


Hi all,

I'm trying to call a function in a Python module (v2.2) from within R
(Windows, v1.5.0) but am not having any luck. I've installed
RSPython_0.4-0.zip and the following lines of code cause R to crash:

# R code
library(RSPython)
out <- .Python("samp1", .module="Sample")

# Python file: Sample.py
def samp1() :
	return 1

Obviously this is not the actual Python function I want to use, but it seems
R is crashing on any .Python call I'm making, and I can't even get it to
work on simple functions.

If any could please help, that would be terrific! Cheers, Jess.

______________________________________________________________

Jess Mar
Department of Mathematics		Phone: +617 3365 3964
University of Queensland Q 4072	Email: jcm at maths.uq.edu.au
Brisbane, AUSTRALIA
______________________________________________________________




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list