makeCachedActiveBinding {BiocFileCache} | R Documentation |
Like makeActiveBinding
but the value of the active
binding gets only evaluated once and is "remembered".
makeCachedActiveBinding(sym, fun, env = .GlobalEnv, verbose = FALSE)
sym |
See |
fun |
See |
env |
See |
verbose |
Set to TRUE to see caching in action (useful for troubleshooting). |
makeCachedActiveBinding("x", function() runif(1), verbose=TRUE) x x