#' cachify turns a function into a caching function
#' @param f The function to cachify (either name or function)
#' @param debug Set to TRUE to receive info about cache retrieval vs. evaluation
#' @param cacheDir A directory where the results of the function are stored.
#' @return The cachified function. Cachifistic!
#' @details ATTENTION: functions that are called for their side-effects become
#' unusable without error!
#' @export
cachify <- function(f, cacheDir, debug=FALSE) {
UseMethod("cachify", object = f)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.