opts_package_version: Constructive options for package_version

View source: R/s3-numeric_version.R

opts_package_versionR Documentation

Constructive options for package_version

Description

Depending on constructor, we construct the object as follows:

  • "package_version" : We use package_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"), ...)

Arguments

constructor

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

...

Additional options used by user defined constructors through the opts object

Value

An object of class <constructive_options/constructive_options_package_version>


constructive documentation built on April 3, 2025, 9:39 p.m.