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

is.memoisedR Documentation

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

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

is.memoised(f)

Arguments

f

Function to test.

See Also

memoise, forget

Examples

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

r-lib/memoise documentation built on Jan. 17, 2024, 3:24 p.m.