Before each call of a function, check that the cache holds the results and returns it if available. Otherwise, compute f and cache the result for next evluations.
Usage
Memoize.function(fun, suffix = ".RcacheDiceView")
Value
a function with same behavior than argument one, but using cache.
Arguments
fun
function to memoize
suffix
suffix to use for cache files (default ".RcacheDiceView")