memo | R Documentation |
Memoize a function.
memo(fn, cache = lru_cache(5000), key = hybrid_key, ...)
fn |
A function to wrap. It should be a pure function (i.e. it should not cause side effects, and should not depend on any variables that may change.) It should not be a nonstandard-evaluating function. All arguments will be forced by the wrapper. |
cache |
A cache to use. Defaults to a new instance of
|
key |
A hashing strategy. The default " |
... |
Further arguments passed on to key. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.