memoise_fun: Logical control on whether or not to memoise

View source: R/utilities.R

memoise_funR Documentation

Logical control on whether or not to memoise

Description

This function provides a simple, logical toggle control on whether the function fun should be memoised via memoise or not.

Usage

memoise_fun(fun, memoise_tf = TRUE)

Arguments

fun

Function name to (potentially) be memoised.

memoise_tf

logical value indicating if fun should be memoised.

Value

fun, memoised if desired.

Examples

  sum_memo <- memoise_fun(sum)


LDATS documentation built on Sept. 19, 2023, 5:08 p.m.