Rpy2

Latest version: v3.5.17

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 22

3.6.0

=============

Changes
-------

- `rpy2` is now a namespace package, with `rpy2-rinterface`
(low-level interface close to R's C API) and `rpy2-robjects`
(possible more-Pythonic high-level interface using the low-level
interface) 2 packages on pypi installing into that namespace.
The package `rpy2` remains on pypi as essentially a metapackage
depending on `rpy2-rinterface` and `rpy2-robjects`.

3.5.17

==============

New features
------------

- `geom_curve` added to the `ggplot2` mapping.

3.5.16

==============

Changes
-------

- After the embedded R is initialized the SIGINT handler is set to
Python default handler (instead of a custom handler raising
:class:`KeyboardInterrupt`).

Bugs fixed
----------

- :meth:`rpy2.robjects.methods.getclassdef` was not reporting
clearly errors due unspecified package name or missing class
definition in within the package namespace specified.

- The display of SVG figures in jupyter notebooks is fixed.
there was a typo in the code.

3.5.15

==============

New features
------------

- Checking C compiling against the R shared library can be skipped with
the environment variable `RPY2_API_FORCE` set to `True`.

- The rinterface-level class :class:`rpy2.rinterface.SexpExtPtr` now
also has an robject-level wrapper :class:`rpy2.robjects.ExternalPointer`,
and a representation for class name-based conversion rules.


Bugs fixed
----------

- Fixed notebook representation of R named arrays or vectors when
conversion rules might interfere (issue 1047).

- Multi-line in environment variables (issue 1066).

Changes
-------

- Complete drop of support for Python 3.7. It is now removed from
the build matrix.

3.5.14

==============

Bugs fixed
----------

- Fixed use of named arguments with `ExtractDelegator` (issue 1048).

- `rpy2py` conversion rules in `numpy2ri` could convert R `list` objects into
:class:`rpy2.containers.rlike.OrdDict` but there were no `py2rpy` rules
to perform the reverse conversion (issue 944).

- :meth:`rpy2.robjects.vectors.ListVector.from_length` was incorrectly
calling the conversion rules before returning the :class:`ListVector`.

Changes
-------

- `distutils` was still used in a couple of places. The installation process
should now be relying only on `setuptools`.

3.5.13

==============

New features
------------

- R is setting a number of environment variables in a wrapper script. Those
variables were not set by default by rpy2 and this could lead to issues (see issue 1033).
The variables are now added to `os.environ`.

Bugs fixed
----------

- `python -m rpy2.situation LD_LIBRARY_PATH` could incorrectly truncate the value
for `LD_LIBRARY_PATH` when the variable `LD_LIBRARY_PATH` is already defined.

Changes
-------

- The dependency on :mod:`pytz`, a deprecated package, was
removed and replaced by a dependency to :mod:`zoneinfo`.
If Python < 3.9 the package :mod:`backports.zoneinfo`
is an added dependency.

- The depency on :mod:`tzlocal` does no longer limit it
to `<5.0` (issue 1035).

- Remove dependency on :mod:`distutils` in Python's standard library. That package is
deprecated and removed in Python 3.12 (see https://peps.python.org/pep-0632/ and
issue 1040).

Page 1 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.