Installing rpy2 package
The R programming language is popular among statisticians. It is written in C and Fortran and is available under the GNU General Public License (GPL). 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 rpy2
package facilitates interfacing with R from Python. Install rpy2
as follows with pip
:
$ pip3 install rpy2
Note
If you already have rpy2
installed, follow the instructions on http://rpy.sourceforge.net/rpy2/doc-dev/html/overview.html as upgrading is not a straightforward process.