Learn R Programming

constructive (version 1.1.0)

opts_weakref: 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"), ...)

Value

An object of class <constructive_options/constructive_options_array>

Arguments

constructor

String. Name of the constructor.

...

Additional options used by user defined constructors through the opts object