Rpy

Latest version: v0.99.2

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

Scan your dependencies

Page 3 of 13

2.7.4

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

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

- Python 3.5 highlighted slightly incorrect C-level flags in rpy2 objects
declarations, and :mod:`rpy2.robjects` could not be imported.

- Fixed unit tests for rmagic when :mod:`numpy` is not installed, and
for :mod:`numpy` is installed by :mod:`pandas` in missing.

2.7.3

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

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

- method :meth:`DataFrame.collect` in :mod:`rpy2.robjects.lib.dplyr`
was not functioning.

- Applied patch by Matthias Klose to fix implict pointer conversions.

- :mod:`pandas2ri.ri2py_dataframe` is now propagating the row names
in the R data frame into an index in the pandas data frame (issue 285)

- methods `union`, `intersect`, `setdiff`, `ungroup` defined in the R package
`dplyr` were missing from the
`DataFrame` definition in :mod:`rpy2.robjects.lib.dplyr`

2.7.2

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

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

- methods `distinct`, `sample_n`, and `sample_frac` defined in the R package
`dplyr` were missing from the `DataFrame` definition in
:mod:`rpy2.robjects.lib.dplyr`

- The fix for the inheritance problem with
:mod:`rpy2.robjects.lib.dplyr.DataFrame` introduced a regression whenever
`group_by` is used.

- The methods to perform joins on dplyr `DataFrame` objects where not
working properly.

2.7.1

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

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

- The :meth:`__repr__` for :mod:`robjects`-level vectors
was broken for vectors of length 1 (issue 306)

- The ipython notebook-based sections of the documentation
were not building

- Classes inheriting from :mod:`dplyr.DataFrame` had dplyr methods
returning objects of their parent class.

2.7.0

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

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

- New exception :class:`rpy2.rinterface.RParsingError`. Errors
occurring when parsing R code through :func:`rpy2.rinterface.parse`
raise this exception (previously :class:`rpy2.rinterface.RRuntimeError`).

- New class :class:`rpy2.robjects.conversion.Converter` to replace
the `namedtuple` of the same name

- New class :class:`rpy2.robjects.converter.ConversionContext`. This is
a context manager allowing an easy setting of local conversion rules.
The constructor has an alias called
:meth:`rpy2.robjects.constructor.localconverter`.

- New module :mod:`rpy2.robjects.lib.dplyr` providing a custom
wrapper for the R library `dplyr`

- Method :method:`Environment.items()` to iterate through the symbols
and associated objects in an R environment.

- Exception :class:`rpy2.rinterface.ParsingIncompleError`, a child class of
:class:`rpy2.rinterface.ParsingError`, raised when
calling :meth:`rpy2.rinteface.parse` results in R's C-level status
to be `PARSE_INCOMPLETE`. This can make the Python implementation of an
IDE for R easier.

- Attribute :attr:`slots` for :mod:`rpy2.robjects`-level objects. The
attribute is a :class:`rpy2.robjects.Rslots` which
behaves like a Python mapping to provide access to R-attributes
for the object (see issue 275).

- The R "magic" for ipython `%%R` can be passed a local converter
(see new features above) by using `-c`.


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

- Conversion rules were not applied when parsing and evaluating string
as R with :class:`rpy2.robjects.R`.

- Calling the constructor for :class:`rpy2.robjects.vectors.FactorVector`
with an R factor is no longer making a copy, loosing the associated
R attributes if any (fixes issue 299).

- `rpy2` could crash when R was unable to dynamically load the C extension for
one of its packages (noticed with issue 303).


Changes
-------

- :func:`rpy2.rinterface.is_initialized` is now a function.

- :meth:`rpy2.robjects.R.__call__` is now calling R's `base::parse()`
to parse the string rather the parser through R's C-API. The workaround
let's us retrieve R's error message in case of failure (see issue 300)

2.6.3

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

Bug fixed
---------

- Metaclass `RS4Auto_Type` facilitating the creation of Python
classes from R S4 classes was not handling classes without
methods (issue 301)

Page 3 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.