is.memoised

0th

Percentile

Test whether a function is a memoised copy.

Test whether a function is a memoised copy. Memoised copies of functions carry an attribute memoised = TRUE, which is.memoised() tests for.

Usage
is.memoised(f)
Arguments
f
Function to test.
See Also

memoise, forget

Aliases
  • is.memoised
  • is.memoized
Examples
mem_lm <- memoise(lm)
is.memoised(lm) # FALSE
is.memoised(mem_lm) # TRUE
Documentation reproduced from package memoise, version 1.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.