These options will be used on objects of class 'S4'.
Usage
opts_S4(constructor = c("new", "prototype"), ...)
Details
Depending on constructor
, we construct the object as follows:
"new"
(default): We build the function usingnew()
if possible. If the class has a "initialize" method we have no practical way to reverse-engineer the inputs so we fall back to the "prototype" constructor"prototype"
: We start fromgetClass("S4")@prototype
and add attributes.