Calls a function with memoization, that is, caches the results to be retrieved if the function is called again with the exact same arguments.
# S3 method for default
memoizedCall(what, ..., envir=parent.frame(), force=FALSE, sources=NULL, dirs=NULL)Returns the result of the function call.
The function to be called, or a character string
    specifying the name of the function to be called,
    cf. do.call().
Arguments passed to the function.
The environment in which the function is evaluated.
If TRUE, any cached results are ignored, otherwise not.
Optional arguments passed to
    loadCache() and saveCache().
Henrik Bengtsson
If the function returns NULL, that particular function call is
  not memoized.
Internally, loadCache() is used to load memoized results,
 if available.  If not available, then do.call() is used to
 evaluate the function call,
 and saveCache() is used to save the results to cache.