Uses simpleCache::simpleCache to implement a form of memoisation. It caches a function's result based on the arguments provided and will reload that value instead of recomputing the function if the arguments match. Additionally allows the user to specify a seed value so that different results based on the same arguments.
1 | memoiseCache(fun, args, cacheNamePrefix = NULL, seed = NULL, ...)
|
fun |
The name of the function to execute as a character string |
args |
A list of the arguments used by do.call to run fun. |
cacheNamePrefix |
Optional prefix that gets added to the cacheName. Frequent usage is a diagnostic marker for OCD. |
seed |
A positive integer that allows extra control over whether or not to compute or load the value from a cache. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.