Learn R Programming

memo (version 1.1.1)

strategies: Strategies for caching items.

Description

The function memo accepts an argument `key` which specifies the keying strategy.

Usage

digest_key(fn, cache, digest = digest::digest)

pointer_key(fn, cache)

hybrid_key(fn, cache, digest = function(x) digest::digest(x, "md5"))

Value

A memoized function.

Arguments

fn

A function whose results should be cached.

cache

A cache object.

digest

A digest function to use.