opts_dots {constructive} | R Documentation |
Constructive options for type '...'
Description
These options will be used on objects of type '...'. These are rarely encountered in practice. By default this function is useless as nothing can be set, this is provided in case users want to extend the method with other constructors.
Usage
opts_dots(constructor = c("default"), ...)
Arguments
constructor |
String. Name of the function used to construct the environment. |
... |
Should not be used. Forces passing arguments by name. |
Details
Depending on constructor
, we construct the environment as follows:
-
"default"
: We use the construct(function(...) environment()$...)(a = x, y)
which we evaluate in the correct environment.
Value
An object of class <constructive_options/constructive_options_environment>
[Package constructive version 0.3.0 Index]