Recent Releases of rpy2
rpy2 - Release 3.5.13
```
Release 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_PATHcould incorrectly truncate the value forLD_LIBRARY_PATHwhen the variableLD_LIBRARY_PATHis 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.zoneinfois an added dependency.The depency on :mod:
tzlocaldoes no longer limit it to<5.0(issue #1035).Remove dependency on :mod:
distutilsin Python's standard library. That package is deprecated and removed in Python 3.12 (see https://peps.python.org/pep-0632/ and issue #1040). ```
- Python
Published by lgautier over 2 years ago
rpy2 -
Release 3.5.12
New features
:func:
rpy2.rinterface.evalr_expr_with_visibleto evaluate an expression and return the visibility status of the value returned.More events in the intialization and termination of an embedded R logged by :mod:
rpy2.rinterface_lib.embedded.loggeratINFOandDEBUGlevels.:meth:
rpy2.robjects.R.__call__has 2 named arguments "visible" and "printrwarnings" to handle R "invisible" results and print R warnings at the end of the evaluation. Invisible results happen when doingrpy2.robjects.r("x <- 1"). R will return the value of x "invisibly". The default areinvisible is Trueandprint_r_warnings is True.
Bugs fixed
- "R magic" cells are now show R warnings at the end of the evaluation of an R cell (#issue 226).
Changes
Evaluating a string as R code using :meth:
rpy2.robjects.R.__call__(e.g.,rpy2.robjects.r("1+2")) now shows R warnings at the end of the evaluation by default.:meth:
rpy2.robjects.R.__call__returns the results invisibly by default (see section "New features" for this release).
- Python
Published by lgautier almost 3 years ago
rpy2 - Release 3.5.11
Release 3.5.11
New features
- :class:
pandas.Categoricalobjects are now converted to Rfactorobjects.
Bugs fixed
:mod:
pandas2.0 makes API-breaking changes that made conversion fail (issue #1013).The default converter for R magic was dropping R factors to :mod:
numpyarrays of integers rather than convert them to pandas :class:Category(issue #1010).
Changes
The fix for issue #1010 (see above) changes the numpy conversion for R factors. It returns an arrays with the level factors rather than the integer codes for the levels.
:func:
rpy2.rojects.pandas2ri.py2rpy_categoryseriesraises a :class:DeprecationWarning.
- Python
Published by lgautier almost 3 years ago
rpy2 -
Release 3.5.10
New features
:mod:
rpy2.situationreports cffi interface type information.The ipython/jupyter R magic can now have
jpegas a default graphics format for static figures in addition topngandsvg.
Bugs fixed
Building the path to the R shared library was incorrectly using the output of
R CMD config LIBnn(issue #982).R started raising warnings when calling
formalsonBUILTINSXPR objects. Internal functions in :mod:rpy.robjects.functionscallingformalsno longer propagate the warnings.
- Python
Published by lgautier almost 3 years ago
rpy2 - v3.5.9.
New features
- Type hints in
rpy2are now checked withmypy.
Bugs fixed
Building the path to the R shared library was incorrectly using the output of
R CMD config LIBnn(issue #982).R started raising warnings when calling
formalsonSPECIALSXPR objects. Internal functionsrpy.robjects.functionscallingformalsno longer propagate the warnings.The
numpyconverter was not turningNA_character_intoNone(issue #979).rpy2.situationincluded an eagerimport rpy2that could cause a version mismatch error with some build/install toolchain (issue #984). The import is now lazy/delayed.Installation targets
pandas,all, andtestnow specifypandas>=1.2.0(which should limit frequencies of issues like #998).
Changes
rpy2.robjects.conversion.Converterobjects are no longer functioning context managers. An exception is now raised when trying to use it that way. The feature was introduced with rpy2-3.5.7 but it does not guarantee the locality of a context manager and can result in permanently changed conversion rules. The methodrpy2.robjects.conversion.Converter.contextshould be used instead.
- Python
Published by lgautier almost 3 years ago
rpy2 - Release 3.5.8
Release 3.5.8
New features
- Default value for the interactivity status of the embedded R
as initialization is now a private variable
_DEFAULT_R_INTERACTIVEin :mod:rpy2.rinterface_lib.embedded.
Bugs fixed
:func:
rpy2.rinterface.initr_checkenv(aliased to :func:rpy2.rinterface.initr) did not include initialization parameters forinteractive,_want_setcallbacks, and_c_stack_limit(issue #976).The numpy converter was not listing R objects of type
CHARSXPas vectors. This make RNA_character_values wrapped inrpy2Python objects to be passed as-is (issue #983).
- Python
Published by lgautier about 3 years ago
rpy2 - Release 3.5.7
Changelog here: https://github.com/rpy2/rpy2/blob/RELEASE35_7/NEWS
- Python
Published by lgautier about 3 years ago