S4

The S4 class is a wrapper of S4 objects in R.

Public Member Functions

Constructors

S4()

Default constructor. Resulting in R_NilValue.

S4(const S4 &other)

Copy constructor. Resulting object will share the SEXP data with other.

template <typename Proxy>

S4(const GenericProxy<Proxy> &proxy)

Create object from a proxy, such as attribute, slot, field, etc.

S4(SEXP x)

Wrap a given S4 object.

S4(const std::string &klass)

Create an S4 object of the requested class.

Defined in S4

bool is(const std::string &clazz) const

Whether this object is an instance of the given S4 class.

Inherited from other classes

See RObject.