Installing rpy2

The R programming language is popular among statisticians. It is written in C and Fortran and is available under the GNU General Public License. R has support for modeling, statistical tests, time-series analysis, classification, visualization, and clustering. The Comprehensive R Archive Network (CRAN) and other repository websites offer thousands of R packages for various tasks.

Note

Download R from http://www.r-project.org/.

The latest R version as of August 2014 was 3.1.1. The rpy2 package facilitates interfacing with R from Python. Install rpy2 as follows with pip:

$ pip install rpy2
$ pip freeze|grep rpy2
rpy2==2.4.2

Note

If you already have rpy2 installed, follow the instructions on http://rpy.sourceforge.net/rpy2/doc-dev/html/overview.html ...

Get Python Data Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.