Learn R Programming

reproducible (version 1.1.1)

.cacheMessage: Create a custom cache message by class

Description

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

Usage

.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

Run this code
# NOT RUN {
a <- 1
.cacheMessage(a, "mean")

# }

Run the code above in your browser using DataLab