BASE$..init.. | R Documentation |
This function will be called after an instance is built. User could override this function in derived class.
BASE$..init..(...)
... |
Ignored by |
Return the object itself.
BASE$..init..
# Inherit from BASE
TEST <- new_class(BASE, class_name = "TEST")
# Override the `..init..` method
register_method(TEST, ..init.. = function(a) {self$x <- a})
# Build a `TEST` instance
test <- TEST$instantiate(a = 2)
test$x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.