What is the best interface from Python 3.1.1 to R?

I use Python 3.1.1 on Mac OS X 10.6.2 and need an interface for R. When I browse the Internet, I learned about RPy. Is it correct?

Currently, the Python program computes the distance matrix and saves it in a file. I call R separately in an interactive way and read in the matrix for cluster analysis. To simplify the calculation, you can prepare a script file for R, then call it from Python and read the results. Since I'm new to Python, I would not want to go back to 2.6.

+12
python interface r
Apr 04 '10 at 0:25
source share
3 answers

edit: Rewrite to summarize the changes accumulated over time.

The current version of rpy2 (2.3.x series) has full support for Python 3.3, while Python 3.0, 3.1 or 3.2 claims are not accepted. At the time of writing the next release of rpy2 (in development, version 2.4.x), only Python 3.3 is supported.

Python 3 Support History:

  • rpy2-2.1.0-dev / Python 3 in the repository - experimental support and application for the Google Summer of Code project, consisting in porting rpy2 to Python 3 (under the Python umbrella)

    application
  • It was also accepted thanks to the support of Google financing for Python 3, which slowly got into the main code base (after GSoC, a little work was done that did this for the version_2.2.x branch).

+20
Apr 18 '10 at 10:52
source share

PypeR is an option if you are trying to use R with the latest versions of Python (e.g. 3.1)

Additional Information:

http://rinpy.sourceforge.net/

+4
Oct 19
source share

I do not believe that there are any options available for Python 3.1.1.

The current state of R-Python bindings:

There are currently three options: RPy, RPy2, and RSPython .

RPy and RPy2 were developed and supported by a single development team; RPy2 is an essential rewriting of RPy (which, in turn, is based on the Omega hat RSPython).

RPy is still actively supported.

RSPython is still available, but I believe that it is no longer being actively developed. I watched a couple of months ago, and the latest version I could find (0.7-1) was released in October 2006.

The latest stable version, as well as the dev (2.1 rc) RPy2 version, is optimized for R version 2.10 (current stable version) and Python 2.6 version (i.e. these are the used versions in development). I don't know a single RPy2 developer announcement to support Python 3.x versions.

+3
Apr 04 '10 at 1:02
source share



All Articles