This is a generic definition that can be extended according to class.

.cacheMessage(object, functionName,
  fromMemoise = getOption("reproducible.useMemoise", TRUE))

# S4 method for ANY
.cacheMessage(object, functionName,
  fromMemoise = getOption("reproducible.useMemoise", TRUE))

Arguments

object

Any R object.

functionName

A character string indicating the function name

fromMemoise

Logical. If TRUE, the message will be about recovery from memoised copy

Value

Nothing; called for its messaging side effect.

Examples

a <- 1 .cacheMessage(a, "mean")
#> loading memoised result from previous mean call.