Description Usage Arguments See Also Examples
Simple wrapper around decorator$new(object, exists)
1 |
object |
|
decorators |
|
exists |
|
... |
|
DecoratorClass
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(R6)
## Define decorators
dec1 <- DecoratorClass("dec1", public = list(goodbye = "Goodbye World"))
dec2 <- DecoratorClass("dec2", public = list(goodbye2 = "Goodbye World 2"))
oop <- ooplah$new()
oop$goodbye
dec_oop <- decorate(oop, c(dec1, dec2))
dec_oop$goodbye
dec_oop$goodbye2
## Equivalently
oop <- ooplah$new()
decorate(oop, c("dec1", "dec2"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.