%<-active% | R Documentation |
Make an Active Binding
sym %<-active% value
sym |
symbol to bind |
value |
A function to call when the value of |
Active bindings defined in a %py_class%
are converted to
@property
decorated methods.
value
, invisibly
makeActiveBinding()
set.seed(1234)
x %<-active% function(value) {
message("Evaluating function of active binding")
if(missing(value))
runif(1)
else
message("Received: ", value)
}
x
x
x <- "foo"
x <- "foo"
x
rm(x) # cleanup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.