is.memoised: Test whether a function is a memoised copy. Memoised copies...

Description Usage Arguments See Also Examples

Description

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

Usage

1

Arguments

f

Function to test.

See Also

memoise, forget

Examples

1
2
3
mem_lm <- memoise(lm)
is.memoised(lm) # FALSE
is.memoised(mem_lm) # TRUE

memoise documentation built on Nov. 26, 2021, 5:33 p.m.