opts_weakref: Constructive options for the class 'weakref'

View source: R/s3-weakref.R

opts_weakrefR Documentation

Constructive options for the class weakref

Description

These options will be used on objects of type weakref. weakref objects are rarely encountered and there is no base R function to create them. However rlang has a new_weakref function that we can use.

Usage

opts_weakref(constructor = c("new_weakref"), ...)

Arguments

constructor

String. Name of the constructor.

...

Additional options used by user defined constructors through the opts object

Value

An object of class <constructive_options/constructive_options_array>


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