Skip to main content

logo Python -> R bridge

pypi Codecov GH Actions

The project's webpage is here: https://rpy2.github.io/

Installation

pip should work out of the box:

pip install rpy2

The package has optional depencies providing specific functionalities not otherwise required to use the rest of rpy2.

For example, to be able to run the unit tests:

pip install rpy2[test]

To install all dependencies, use:

pip install rpy2[all]

The package is known to compile on Linux, MacOSX (provided that developper tools are installed, and you are ready figure out how by yourself). The situation is currently a little more complicated on Windows. Check the issue tracker.

In case you find yourself with this source without any idea of what it takes to compile anything on your platform, try first

python setup.py install

Non system-R installations

Whenever R is in not installed in a system location, the system might not know where to find the R shared library.

If R is in the PATH, that is entering R on the command line successfully starts an R terminal, but rpy2 does not work because of missing C libraries, try the following before starting Python:

export LD_LIBRARY_PATH="$(python -m rpy2.situation LD_LIBRARY_PATH)":${LD_LIBRARY_PATH}

Docker

To try rpy2 in an ipython console:

docker run --rm -p 8888:8888 rpy2/jupyter-ubuntu:master-20.04 ipython

To run a jupypter notebook on port 8888:

docker run --rm -p 8888:8888 rpy2/jupyter-ubuntu:master-20.04

More information about Docker images can be found in the docker image repository.

Images with jupyter are can be used with mybinder.

Documentation

Documentation is available either in the source tree (doc/), or online.

Testing

rpy2 uses pytest, with the plugin pytest-cov for code coverage. To test the package from the source tree, either to check and installation on your system or before submitting a pull request, do:

pytest tests/

For code coverage, do:

pytest --cov=rpy2.rinterface_lib \
       --cov=rpy2.rinterface \
       --cov=rpy2.ipython \
       --cov=rpy2.robject \
       tests

For more options, such as how to run specify tests, please refer to the pytest documentation.

License

RPy2 can be used under the terms of the GNU General Public License Version 2 or later (see the file gpl-2.0.txt). This is the very same license R itself is released under.

Metadata

Release files for rpy2 3.5.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpy2 3.5.6
File Size Uploaded Provenance Actions
rpy2-3.5.6.tar.gz 212.0 kB Without provenance Details for rpy2-3.5.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rpy2 3.5.6
File Actions
rpy2-3.5.6-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for rpy2-3.5.6-cp310-cp310-macosx_10_15_x86_64.whl
rpy2-3.5.6-cp39-cp39-macosx_10_15_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.15+ x86-64 Details for rpy2-3.5.6-cp39-cp39-macosx_10_15_x86_64.whl
rpy2-3.5.6-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details for rpy2-3.5.6-cp38-cp38-macosx_10_15_x86_64.whl
rpy2-3.5.6-cp37-cp37m-macosx_10_15_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64 Details for rpy2-3.5.6-cp37-cp37m-macosx_10_15_x86_64.whl

Total release size: 1.2 MB

Release files / rpy2-3.5.6.tar.gz

Download URL rpy2-3.5.6.tar.gz
Size 212.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3404f1031d2d8ff8a1002656ab8e394b8ac16dd34ca43af68deed102f396e771
BLAKE2b-256 checksum
How to use checksums
aebd2606e674ef0760fbe832e32274d23a9e2ca5192ab1d43a04ee5e24cf7045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.3.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / rpy2-3.5.6-cp310-cp310-macosx_10_15_x86_64.whl

Download URL rpy2-3.5.6-cp310-cp310-macosx_10_15_x86_64.whl
Size 253.4 kB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
7f56bb66d95aaa59f52c82bdff3bb268a5745cc3779839ca1ac9aecfc411c17a
BLAKE2b-256 checksum
How to use checksums
d1c2e362aa84065c10dfbfea62320b2ac8bbfca8b8dc785a949847978f8d1519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.3.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / rpy2-3.5.6-cp39-cp39-macosx_10_15_x86_64.whl

Download URL rpy2-3.5.6-cp39-cp39-macosx_10_15_x86_64.whl
Size 253.4 kB
Tags CPython 3.9 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
6a2e4be001b98c00f084a561cfcf9ca52f938cd8fcd8acfa0fbfc6a8be219339
BLAKE2b-256 checksum
How to use checksums
1600a276eb07c6c58768495e896bc94026d7937cb36f167023170d5605f8b6a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.3.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / rpy2-3.5.6-cp38-cp38-macosx_10_15_x86_64.whl

Download URL rpy2-3.5.6-cp38-cp38-macosx_10_15_x86_64.whl
Size 253.4 kB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
a3f74cd54bd2e21a94274ae5306113e24f8a15c034b15be931188939292b49f7
BLAKE2b-256 checksum
How to use checksums
9b62d34ce7220f54d7060ae6852f35c7d3472347a2d978ad7f393d5b54447c0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.3.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / rpy2-3.5.6-cp37-cp37m-macosx_10_15_x86_64.whl

Download URL rpy2-3.5.6-cp37-cp37m-macosx_10_15_x86_64.whl
Size 253.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
defff796b43fe230e1e698a1bc353b7a4a25d4d9de856ee1bcffd6831edc825c
BLAKE2b-256 checksum
How to use checksums
e1fe64f6e94182f130d85ad1d805f7c4fcfb54f6c55c8a93cd9f3fcaf6e25840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.3.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for rpy2 3.5.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.5.6 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page