View source: R/warn_deprecated.R
deprecated_binding | R Documentation |
Creates an active binding that generates a warning when accessed, using
warn_deprecated()
. The active binding will otherwise be read-only.
deprecated_binding(what, value)
what |
(character(1)) |
value |
(any) |
MyClass = R6::R6Class("MyClass", public = list(),
active = list(
foo = deprecated_binding("MyClass$foo", "bar")
)
)
mco = MyClass$new()
mco$foo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.