withGraph: The overall cached workflow wrapper to generate a diagram

Description Usage Arguments Value

Description

The overall cached workflow wrapper to generate a diagram

Usage

1
withGraph(expr)

Arguments

expr

An expression, normally including multiple cachedCall calls.

Value

CachedWorkflow S3 object.

The CachedWorkflow may include a CachedResult whose value can be extracted with function extractVal

A GraphViz diagram can be generated by calling the function plot on that CachedWorkflow object. The diagram is generated by grViz under the hood.

Finally, a simple count of the number of already cached and (re-)evaluated calls made with cachedCall can be obtained with calling the function summary on the CachedWorkflow.


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