INNER CODE UNIT · Python
evalr
rpy2/rpy2 · rpy2-rinterface/src/rpy2/rinterface/__init__.py:210
def evalr(
source: str,
maxlines: int = -1,
envir: typing.Union[
None,
'SexpEnvironment', 'NULLType',
'ListSexpVector', 'PairlistSexpVector', int,
'_MissingArgType'] = None,
enclos: typing.Union[
None,
'ListSexpVector', 'PairlistSexpVector',
'NULLType', '_MissingArgType'] = None
) -> sexp.Sexp:
"""Evaluate a string as R code.
Evaluate a string as R just as it would happen when writing
code in an R terminal.