Skip to main content

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 optional dependencies (numpy, pandas, ipython), 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

Issues loading shared C libraries

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}

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.12

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.12
File Size Uploaded Provenance Actions
rpy2-3.5.12.tar.gz 217.8 kB Without provenance Details for rpy2-3.5.12.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rpy2 3.5.12
File Actions
rpy2-3.5.12-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details for rpy2-3.5.12-cp311-cp311-macosx_10_9_universal2.whl
rpy2-3.5.12-cp310-cp310-macosx_11_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 11.0+ x86-64 Details for rpy2-3.5.12-cp310-cp310-macosx_11_0_x86_64.whl
rpy2-3.5.12-cp39-cp39-macosx_11_0_x86_64.whl CPython 3.9 CPython 3.9 macOS 11.0+ x86-64 Details for rpy2-3.5.12-cp39-cp39-macosx_11_0_x86_64.whl
rpy2-3.5.12-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details for rpy2-3.5.12-cp38-cp38-macosx_10_15_x86_64.whl
rpy2-3.5.12-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.12-cp37-cp37m-macosx_10_15_x86_64.whl

Total release size: 1.6 MB

Release files / rpy2-3.5.12.tar.gz

Download URL rpy2-3.5.12.tar.gz
Size 217.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eeadf794fd2aa548f88568c6a1d26e7c3810cd4a764a87b2c3b31d31942d6d45
BLAKE2b-256 checksum
How to use checksums
5cf2ebeb1679b93badaffdd709b0ed4ea9a0335974fb6a2b950875ec2bf1b6bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / rpy2-3.5.12-cp311-cp311-macosx_10_9_universal2.whl

Download URL rpy2-3.5.12-cp311-cp311-macosx_10_9_universal2.whl
Size 299.0 kB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a46ae2d1c1b0d349438f9ced25d942e0e8ea541bee629652874c180adaf43e55
BLAKE2b-256 checksum
How to use checksums
5097e86d066d01edb8bb509f9a1ba915e1362e9376e6d017c0b71dd21ad6587d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / rpy2-3.5.12-cp310-cp310-macosx_11_0_x86_64.whl

Download URL rpy2-3.5.12-cp310-cp310-macosx_11_0_x86_64.whl
Size 259.9 kB
Tags CPython 3.10 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
b425876580a9d750b5a856e0c9af615563cabadcc2b83222ec8910ea5b535b6d
BLAKE2b-256 checksum
How to use checksums
c3d993208d7c6bd014c9b518698c9d0aed470813737285c9033833bd60e28ca1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / rpy2-3.5.12-cp39-cp39-macosx_11_0_x86_64.whl

Download URL rpy2-3.5.12-cp39-cp39-macosx_11_0_x86_64.whl
Size 259.9 kB
Tags CPython 3.9 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
c5a330998692d2827f841ac71e2d062ad4facffda3ab2a958acc4c91d4934216
BLAKE2b-256 checksum
How to use checksums
09defbf250c81ff392d3e275a409bd2f7d4b2d1f7e12836b2ad8340d3c8e8804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

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

Download URL rpy2-3.5.12-cp38-cp38-macosx_10_15_x86_64.whl
Size 259.9 kB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
5726ba128932b39f383695df004968cd0ffc05cfb9da553c21b0b08bd8fa8120
BLAKE2b-256 checksum
How to use checksums
35d9945092afdb2d0c787fb24b6bec6f4607597d36d4eb4ceeaba22adfbd24a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

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

Download URL rpy2-3.5.12-cp37-cp37m-macosx_10_15_x86_64.whl
Size 259.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
ff1b72c21f9823a9b566a1acfd9afa1c3d5588e78408d113e15f59cd3aae6035
BLAKE2b-256 checksum
How to use checksums
7e1eb71ad1c125ee18700741a23d9a5b15233dd9949ca7757c1af724e5e0461c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for rpy2 3.5.12

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.12 This release

6 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