Learn R Programming

reproducible (version 1.2.8)

.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),
  verbose = getOption("reproducible.verbose", 1)
)

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

Value

Nothing; called for its messaging side effect.

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

verbose

Numeric, -1 silent (where possible), 0 being very quiet, 1 showing more messaging, 2 being more messaging, etc. Default is 1. Above 3 will output much more information about the internals of Caching, which may help diagnose Caching challenges. Can set globally with an option, e.g., options('reproducible.verbose' = 0) to reduce to minimal

Author

Eliot McIntire

Examples

Run this code
a <- 1
.cacheMessage(a, "mean")

Run the code above in your browser using DataLab