cache: Get and set cache methods

cacheR Documentation

Get and set cache methods

Description

Getter and setter methods for caches in RapData and RapResults object.

Usage

cache(x, name, y)

## S4 method for signature 'RapData,character,ANY'
cache(x, name, y)

## S4 method for signature 'RapData,character,missing'
cache(x, name, y)

## S4 method for signature 'RapResults,character,ANY'
cache(x, name, y)

## S4 method for signature 'RapResults,character,missing'
cache(x, name, y)

Arguments

x

RapData or RapResults object

name

character hash.

y

if ANY this object gets cached with name, else if missing the object hashed at name gets returned.

Value

ANY or NULL depends on y argument.

Note

caches are implemented using environments, the hash is used as the name of the object in the environment.


raptr documentation built on March 31, 2023, 9:46 p.m.