rbartpackages.base.RObjectBase

class rbartpackages.base.RObjectBase(*args, **kw)[source]

Base class for Python wrappers of R objects creators.

Subclasses should define the class attribute _rfuncname, and declare stub methods decorated with rmethod.

_rfuncname: ClassVar[str] = NotImplemented

R function to call, as '<package>::<function>'.

Called with the initialization arguments converted to R objects; the R object it returns is stored in _robject, and that object’s named components are converted to Python values and set as attributes.

_robject: Any

The R object returned by _rfuncname, whose components become attributes.