INNER CODE UNIT · Python
SexpPromise
rpy2/rpy2 · rpy2-rinterface/src/rpy2/rinterface/__init__.py:374
class SexpPromise(Sexp):
@_cdata_res_to_rinterface
def eval(self, env: typing.Optional[SexpEnvironment] = None) -> sexp.Sexp:
""""Evalute the R "promise".
:param env: The environment in which to evaluate the
promise.
"""
if env is None:
env = globalenv
return openrlib.rlib.Rf_eval(self.__sexp__._cdata, env)
class SexpVectorWithNumpyInterface(SexpVectorCCompatibleAbstract, SexpVector):
"""Numpy-specific API for accessing the content of a numpy array.
This interface implements version 3 of Numpy's `__array_interface__`