S3WrapperGenerator | R Documentation |
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)
R6Method |
An |
self |
A character string specifying the name of the parameter, which will take the R6 object. |
dots |
A logical specifying if a |
Returns an S3 method (function
).
S3Methods
, R6::R6Class
# generate an S3 wrapper method for 'alter()' of 'DTSg'
alter.DTSg <- S3WrapperGenerator(
R6Method = DTSg$public_methods$alter
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.