A simple and efficient access to R from Python
Automated installationFetching and installing the latest release from Pypi can be done by running easy_install
easy_install rpy2or pip
pip install rpy2
rpy2 is also packaged for a number of systems: Debian/Ubuntu, RedHat/Fedora, openSUSE, Gentoo, Fink, Macports (OS X), FreshPorts (BSD). The Debian packages maintained by Dirk Eddelbuettel are usually updated shortly after new releases, but other distribution can have several months of delay, or even a year.
Source and binary packages are available at:
The documentation for the released version has further instructions regarding the installation process.
The primary repository the rpy2 source is now on Mercurial, and at bitbucket: http://www.bitbucket.org/lgautier/rpy2/ .
When using the command-line client, fetching the repository is achieved with:
hg clone https://www.bitbucket.org/lgautier/rpy2and switching to the branch of interest with:
hg update -C [branch_name]
A list of branch names can be obtained with:
The documentation for the development version has further instructions regarding the installation process.
For the time being, the source in Sourceforge's SVN is no longer up-to-date.