Depending on constructor
, we construct the object as follows:
"package_version"
: We usepackage_version()
"next"
: Use the constructor for the next supported class. Call.class2()
on the object to see in which order the methods will be tried. This will usually be equivalent to"array"
"list"
: We define as a list and repair attributes
Usage
opts_package_version(constructor = c("package_version", "next", "list"), ...)