flow_call: Implicit cache of a function and of the given call

Description Usage Arguments Value Examples

View source: R/flow-functions.R

Description

Implicit cache of a function and of the given call

Usage

1

Arguments

fn_call

Function call to be processed.

fn_id

Character or Integer. Optional id to uniquely identify the function. By default, rflow functions reuse the cache if the same function is given. The fn_id allows the user to suppress console messages and to explicitly indicate whether to reuse the old cache or create a new one.

flow_options

List of options created using get_flow_options.

Value

The flow object.

Examples

1
2
3
fn <- function(x, y) { x + y + 3 }
call_flow <- flow_call(fn(x = 1, y = 2))
collected_result <- call_flow %>% collect()

numeract/rflow documentation built on May 28, 2019, 3:39 p.m.