R/Memoise.R

#' Memoise a function.
#'
#' Wrapper for \code{\link[memoise]{memoise}}.
#'
#' @param .f Function of which to create a memoised copy.
#' @return A memoised copy of the original function.
#' @family function operators
#' @seealso \code{\link[memoise]{memoise}} for code and documentation.
#' @export
Memoise <- function(.f) {
  return(memoise::memoise(.f))
}

Try the functools package in your browser

Any scripts or data that you put into this service are public.

functools documentation built on May 2, 2019, 5:39 a.m.