rpy2


Namerpy2 JSON
Version 3.5.16 PyPI version JSON
download
home_pageNone
SummaryPython interface to the R language (embedded R)
upload_time2024-03-31 21:20:23
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseGPLv2+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python -> R bridge

[![pypi](https://img.shields.io/pypi/v/rpy2.svg?style=flat-square)](https://pypi.python.org/pypi/rpy2)
[![Codecov](https://codecov.io/gh/rpy2/rpy2/branch/master/graph/badge.svg)](https://codecov.io/gh/rpy2/rpy2)
[![GH Actions](https://github.com/rpy2/rpy2/workflows/Python%20package/badge.svg)](https://github.com/rpy2/rpy2/actions?query=workflow%3A%22Python+package%22)

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


# Installation

`pip` should work out of the box:

```bash
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:
```bash
pip install rpy2[test]
```

To install all optional dependencies (numpy, pandas, ipython), use:

```bash
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

```bash
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:


```bash
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](https://rpy2.github.io/doc.html).


## 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:

```bash
pytest tests/
```

For code coverage, do:

```bash
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rpy2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Laurent Gautier <lgautier@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/20/4a/2c7a3e08c4db3eb6c5fd050815b11947073997d0a521cd83c7dec1946d2e/rpy2-3.5.16.tar.gz",
    "platform": null,
    "description": "# Python -> R bridge\n\n[![pypi](https://img.shields.io/pypi/v/rpy2.svg?style=flat-square)](https://pypi.python.org/pypi/rpy2)\n[![Codecov](https://codecov.io/gh/rpy2/rpy2/branch/master/graph/badge.svg)](https://codecov.io/gh/rpy2/rpy2)\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)\n\nThe project's webpage is here: https://rpy2.github.io/\n\n\n# Installation\n\n`pip` should work out of the box:\n\n```bash\npip install rpy2\n```\n\nThe package has optional depencies providing\nspecific functionalities not otherwise required to use the rest of rpy2.\n\nFor example, to be able to run the unit tests:\n```bash\npip install rpy2[test]\n```\n\nTo install all optional dependencies (numpy, pandas, ipython), use:\n\n```bash\npip install rpy2[all]\n```\n\nThe package is known to compile on Linux, MacOSX\n(provided that developper tools are installed, and you are ready\nfigure out how by yourself). The situation is currently a little\nmore complicated on Windows. Check the issue tracker.\n\nIn case you find yourself with this source without any idea\nof what it takes to compile anything on your platform, try first\n\n```bash\npython setup.py install\n```\n\n\n## Issues loading shared C libraries\n\nWhenever R is in not installed in a system location, the system might not\nknow where to find the R shared library.\n\nIf `R` is in the `PATH`, that is entering `R` on the command line successfully starts\nan R terminal, but rpy2 does not work because of missing C libraries, try the following\nbefore starting Python:\n\n\n```bash\nexport LD_LIBRARY_PATH=\"$(python -m rpy2.situation LD_LIBRARY_PATH)\":${LD_LIBRARY_PATH}\n```\n\n\n# Documentation\n\nDocumentation is available either in the source tree (`doc/`),\nor [online](https://rpy2.github.io/doc.html).\n\n\n## Testing\n\n`rpy2` uses `pytest`, with the plugin `pytest-cov` for code coverage. To\ntest the package from the source tree, either to check and installation\non your system or before submitting a pull request, do:\n\n```bash\npytest tests/\n```\n\nFor code coverage, do:\n\n```bash\npytest --cov=rpy2.rinterface_lib \\\n       --cov=rpy2.rinterface \\\n       --cov=rpy2.ipython \\\n       --cov=rpy2.robject \\\n       tests\n```\n\nFor more options, such as how to run specify tests, please refer to the `pytest`\ndocumentation.\n\n\n# License\n\nRPy2 can be used under the terms of the GNU\nGeneral Public License Version 2 or later (see the file\ngpl-2.0.txt). This is the very same license R itself is released under.\n",
    "bugtrack_url": null,
    "license": "GPLv2+",
    "summary": "Python interface to the R language (embedded R)",
    "version": "3.5.16",
    "project_urls": {
        "Documentation": "https://rpy2.github.io/doc.html",
        "Homepage": "https://rpy2.github.io",
        "Source": "https://github.com/rpy2/rpy2",
        "Tracker": "https://github.com/rpy2/rpy2/issue"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dfc8b5c570ae8804b02bd771490ab62566ad41662e17134ebb9d13a36aa880a4",
                "md5": "9c92529ee79c10258dbf705a83bab5de",
                "sha256": "c748fc74ba01a51f6aca0a5f9e7bf637cd09413ffa031dd79b49b7a9fe97770b"
            },
            "downloads": -1,
            "filename": "rpy2-3.5.16-cp310-cp310-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "9c92529ee79c10258dbf705a83bab5de",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 260831,
            "upload_time": "2024-03-31T21:20:14",
            "upload_time_iso_8601": "2024-03-31T21:20:14.522073Z",
            "url": "https://files.pythonhosted.org/packages/df/c8/b5c570ae8804b02bd771490ab62566ad41662e17134ebb9d13a36aa880a4/rpy2-3.5.16-cp310-cp310-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "16211802c3e09cf3bcc850d5c439a21aa2b5a004ba3d6f61789d42db6de05364",
                "md5": "21d124a6484c7e548624ca9de5c0ed95",
                "sha256": "f076b34bd79f62ae583e75acc1b305ba73a6639ea5c9a44dc53896709ccd8ba0"
            },
            "downloads": -1,
            "filename": "rpy2-3.5.16-cp311-cp311-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "21d124a6484c7e548624ca9de5c0ed95",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 299937,
            "upload_time": "2024-03-31T21:20:17",
            "upload_time_iso_8601": "2024-03-31T21:20:17.370178Z",
            "url": "https://files.pythonhosted.org/packages/16/21/1802c3e09cf3bcc850d5c439a21aa2b5a004ba3d6f61789d42db6de05364/rpy2-3.5.16-cp311-cp311-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d6483aac910b8fadd66365582c7dc0c065315dbeafe9b8cf3e53aa3b189277a",
                "md5": "8f291cbae919158935349b058833400d",
                "sha256": "3bb396851710856c6544c4278988b2abfe01d5a392278e5157b97148e62079c4"
            },
            "downloads": -1,
            "filename": "rpy2-3.5.16-cp38-cp38-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8f291cbae919158935349b058833400d",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.7",
            "size": 260816,
            "upload_time": "2024-03-31T21:20:19",
            "upload_time_iso_8601": "2024-03-31T21:20:19.216305Z",
            "url": "https://files.pythonhosted.org/packages/0d/64/83aac910b8fadd66365582c7dc0c065315dbeafe9b8cf3e53aa3b189277a/rpy2-3.5.16-cp38-cp38-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e3017eb8f6dcc41f974f4e072d3d3537229384e4f987822bb3d90ba0f77e857",
                "md5": "ff7f666abd2a1d473f718362234a9b76",
                "sha256": "c067769dbade7faccdc8d2181ae5e29329fe0e66289fb291436a546da2f5e881"
            },
            "downloads": -1,
            "filename": "rpy2-3.5.16-cp39-cp39-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ff7f666abd2a1d473f718362234a9b76",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.7",
            "size": 260827,
            "upload_time": "2024-03-31T21:20:21",
            "upload_time_iso_8601": "2024-03-31T21:20:21.007250Z",
            "url": "https://files.pythonhosted.org/packages/1e/30/17eb8f6dcc41f974f4e072d3d3537229384e4f987822bb3d90ba0f77e857/rpy2-3.5.16-cp39-cp39-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "204a2c7a3e08c4db3eb6c5fd050815b11947073997d0a521cd83c7dec1946d2e",
                "md5": "be5385a5547673f5b1b64e245dcd7f13",
                "sha256": "837e2f74583658a5c4c339761a73f9434f33ef9ced3e30c64da7562165c2801b"
            },
            "downloads": -1,
            "filename": "rpy2-3.5.16.tar.gz",
            "has_sig": false,
            "md5_digest": "be5385a5547673f5b1b64e245dcd7f13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 220028,
            "upload_time": "2024-03-31T21:20:23",
            "upload_time_iso_8601": "2024-03-31T21:20:23.408002Z",
            "url": "https://files.pythonhosted.org/packages/20/4a/2c7a3e08c4db3eb6c5fd050815b11947073997d0a521cd83c7dec1946d2e/rpy2-3.5.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-31 21:20:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rpy2",
    "github_project": "rpy2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "rpy2"
}
        
Elapsed time: 0.99366s