opts_S7_object: Constructive options for class 'S7_object'

View source: R/s7-S7-object.R

opts_S7_objectR Documentation

Constructive options for class 'S7_object'

Description

These options will be used on objects of class 'S7_object'. This class is unusual in that it can be applied on objects of different internal types, objects of length 1 class "S7_object" are of type "object" while for instance objects of class c("S7_class", "S7_object") are closures. For closures we fall back to the next method.

Usage

opts_S7_object(constructor = c("S7_object", "next"), ...)

Arguments

constructor

String. Name of the function used to construct the object.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "S7_object" (default): We build the object using S7::S7_object().

  • "next" : Use the constructor for the next supported class.

Value

An object of class <constructive_options/constructive_options_S7_object>


constructive documentation built on Nov. 5, 2025, 7:14 p.m.