RELEASE_3_5_12: rpy2.robjects.R.__call__() prints R warnings at the end of the evalua…
Release 3.5.12
New features
-
:func:
rpy2.rinterface.evalr_expr_with_visible
to 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.logger
atINFO
andDEBUG
levels. -
:meth:
rpy2.robjects.R.__call__
has 2 named arguments "visible" and
"print_r_warnings" to handle R "invisible" results and print R warnings
at the end of the evaluation. Invisible results happen when doing
rpy2.robjects.r("x <- 1")
. R will return the value of x "invisibly".
The default areinvisible is True
andprint_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).