Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.memoised

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

Examples

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

memoise

Memoisation of Functions

v2.0.0
MIT + file LICENSE
Authors
Hadley Wickham [aut], Jim Hester [aut, cre], Winston Chang [aut], Kirill Müller [aut], Daniel Cook [aut], Mark Edmondson [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.