extractVal: Extract the value of a CachedResult

Description Usage Arguments Value

View source: R/core_public.R

Description

A CachedResult needs to be wrapped by this function if it is used outside cachedCall as an argument in other functions.

Usage

1

Arguments

arg

This is normally a CachedResult returned by cachedCall or cachedCallConcur, but does not have to be. If arg is not a CachedResult, extractVal just returns arg.

Value

Value of a CachedResult extracted from cache or arg if arg is not a CachedResult.


alekrutkowski/cacheflow documentation built on Sept. 3, 2021, 7:10 p.m.