makeCachedActiveBinding: makeCachedActiveBinding

Description Usage Arguments Examples

View source: R/makeCachedActiveBinding.R

Description

Like makeActiveBinding but the value of the active binding gets only evaluated once and is "remembered".

Usage

1
makeCachedActiveBinding(sym, fun, env = .GlobalEnv, verbose = FALSE)

Arguments

sym

See makeActiveBinding in the base package.

fun

See makeActiveBinding in the base package.

env

See makeActiveBinding in the base package.

verbose

Set to TRUE to see caching in action (useful for troubleshooting).

Examples

1
2
3
makeCachedActiveBinding("x", function() runif(1), verbose=TRUE)
x
x

BiocFileCache documentation built on Nov. 8, 2020, 5:06 p.m.