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