Skip to content

_registry

Attributes

Py2rConverter = Callable[[Any], Sexp] module-attribute

Callable signature for a Python→R converter.

Parameters:

Name Type Description Default
obj Any

Python object to convert.

required

Returns:

Type Description
Sexp

Low-level R object handle.

R2pyConverter = Callable[[Any, ShmPool | None], PyObject] module-attribute

Callable signature for an R→Python converter.

Parameters:

Name Type Description Default
obj Any

R-side object (usually an rpy2 wrapper type).

required
shm ShmPool or None

Shared memory pool used to allocate backing buffers for large numeric payloads.

required

Returns:

Type Description
PyObject

_R2PY_CONVERTERS = {} module-attribute

_PY2R_CONVERTERS = {} module-attribute