{"id":14065617,"url":"https://github.com/rpy2/rpy2","last_synced_at":"2025-05-14T20:09:36.025Z","repository":{"id":37445027,"uuid":"161827660","full_name":"rpy2/rpy2","owner":"rpy2","description":"Interface to use R from Python","archived":false,"fork":false,"pushed_at":"2024-10-24T03:58:55.000Z","size":30442,"stargazers_count":561,"open_issues_count":154,"forks_count":73,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-24T15:55:26.792Z","etag":null,"topics":["cffi","data-science","interoperability","python","r","statistics"],"latest_commit_sha":null,"homepage":"https://rpy2.github.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rpy2.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T18:51:22.000Z","updated_at":"2024-10-24T03:53:44.000Z","dependencies_parsed_at":"2024-01-16T00:00:30.378Z","dependency_job_id":"40209258-e925-4ec3-8a8b-37a94349a2c3","html_url":"https://github.com/rpy2/rpy2","commit_stats":{"total_commits":3867,"total_committers":68,"mean_commits":56.86764705882353,"dds":0.4424618567364882,"last_synced_commit":"ae74c26deca603786acfe0bdb03433bfc74975fc"},"previous_names":[],"tags_count":106,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpy2%2Frpy2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpy2%2Frpy2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpy2%2Frpy2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpy2%2Frpy2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpy2","download_url":"https://codeload.github.com/rpy2/rpy2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589821,"owners_count":20963025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cffi","data-science","interoperability","python","r","statistics"],"created_at":"2024-08-13T07:04:35.734Z","updated_at":"2025-04-07T08:07:41.693Z","avatar_url":"https://github.com/rpy2.png","language":"Python","readme":"# Python -\u003e R bridge\r\n\r\n[![pypi](https://img.shields.io/pypi/v/rpy2.svg?style=flat-square)](https://pypi.python.org/pypi/rpy2)\r\n![PyPI Downloads](https://static.pepy.tech/badge/rpy2)\r\n[![Codecov](https://codecov.io/gh/rpy2/rpy2/branch/master/graph/badge.svg)](https://codecov.io/gh/rpy2/rpy2)\r\n[![GH Actions](https://github.com/rpy2/rpy2/workflows/Python%20package/badge.svg)](https://github.com/rpy2/rpy2/actions?query=workflow%3A%22Python+package%22)\r\n\r\nThe project's webpage is here: https://rpy2.github.io/\r\n\r\n\r\n# Installation\r\n\r\nReleased versions can be installed from a package repository (default\r\nbeing pypi) using pip:\r\n\r\n```bash\r\npip install rpy2\r\n```\r\n\r\nThe package has optional depencies providing\r\nspecific functionalities not otherwise required to use the rest of rpy2.\r\n\r\nFor example, to be able to run the unit tests:\r\n```bash\r\npip install 'rpy2[test]'\r\n```\r\n\r\nTo install all optional dependencies (numpy, pandas, ipython), use:\r\n\r\n```bash\r\npip install 'rpy2[all]'\r\n```\r\n\r\n## Installation for rpy2 developers\r\n\r\nIf a developer, the package can be installed from its source tree.\r\n`rpy2` is a namespace package with its consituting parts in different\r\n\"sub-packages\".\r\n\r\nTo install from the source tree, just enter:\r\n\r\n```bash\r\npip install ./rpy2-rinterface/ ./rpy2-robjects/ .\r\n```\r\n\r\nVarious optional dependencies can be specified through dependency groups.\r\nFor example:\r\n\r\n```bash\r\npip install ./rpy2-rinterface'[all]' ./rpy2-robjects'[all]' '.[all]'\r\n```\r\n\r\n`rpy2-rinterface` contains the binding to R's C API. Building from\r\nsource require a compilation toolchain / developper tools installed,\r\nand you will have to figure out how to have them installed on your\r\nsystem by yourself. The CI pipeline builds binary wheels for Linux,\r\nMacOS, and Windows. Watching how things are set up there is pretty\r\nmuch all documentation from the package maintainers on the matter.\r\n\r\n\r\n## Issues loading shared C libraries\r\n\r\nWhenever R is in not installed in a system location, the system might not\r\nknow where to find the R shared library.\r\n\r\nIf `R` is in the `PATH`, that is entering `R` on the command line successfully starts\r\nan R terminal, but rpy2 does not work because of missing C libraries, try the following\r\nbefore starting Python:\r\n\r\n\r\n```bash\r\nexport LD_LIBRARY_PATH=\"$(python -m rpy2.situation LD_LIBRARY_PATH)\":${LD_LIBRARY_PATH}\r\n```\r\n\r\n\r\n# Documentation\r\n\r\nDocumentation is available either in the source tree (`doc/`),\r\nor [online](https://rpy2.github.io/doc.html).\r\n\r\n\r\n## Testing\r\n\r\n`rpy2` uses `pytest`, with the plugin `pytest-cov` for code coverage. To\r\ntest the package from the source tree, either to check and installation\r\non your system or before submitting a pull request, do:\r\n\r\n```bash\r\npytest rpy2-rinterface/ rpy2-robjects/\r\n```\r\n\r\nFor code coverage, do:\r\n\r\n```bash\r\npytest --cov=rpy2.rinterface_lib \\\r\n       --cov=rpy2.rinterface \\\r\n       --cov=rpy2.ipython \\\r\n       --cov=rpy2.robject \\\r\n       rpy2-rinterface/ rpy2-robjects/\r\n```\r\n\r\nFor more options, such as how to run specify tests, please refer to the `pytest`\r\ndocumentation.\r\n\r\n\r\n# License\r\n\r\nRPy2 can be used under the terms of the GNU\r\nGeneral Public License Version 2 or later (see the file\r\ngpl-2.0.txt). This is the very same license R itself is released under.\r\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpy2%2Frpy2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpy2%2Frpy2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpy2%2Frpy2/lists"}