Generates S3 wrapper methods for public methods of R6ClassGenerator
s, but
can also be used to generate “plain” function wrappers.
S3WrapperGenerator(R6Method, self = "x", dots = TRUE)
An expression
with or a public method (function
) of
an R6ClassGenerator
.
A character string specifying the name of the parameter, which will take the R6 object.
A logical specifying if a ...
parameter shall be added as last
parameter in case none already exists. This might be required for S3
generic/method consistency.
Returns an S3 method (function
).
# generate an S3 wrapper method for 'alter()' of 'DTSg'
alter.DTSg <- S3WrapperGenerator(
R6Method = DTSg$public_methods$alter
)