Installing RPy2

R is a popular scripting language used for statistics and data analysis. RPy2 is an interface between R and Python. We will install RPy2 in this recipe.

How to do it...

If you want to install RPy2, choose one of the following options:

  • Installing with pip or easy_install.

    RPy2 is available on PYPI, so we can install it with either of the following two commands:

    easy_install rpy2
    

    or

    sudo pip install rpy2
    
  • Installing from source.

    We can install RPy2 from the source tar.gz:

    tar -xzf <rpy2_package>.tar.gz
    cd <rpy2_package>
    python setup.py build install
    
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset