Implicit cache of a function and of the given call.

flow_call(fn_call, fn_id = NULL, flow_options = get_flow_options())

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

fn <- function(x, y) { x + y + 3 } call_flow <- flow_call(fn(x = 1, y = 2))
#> Error in eval(unmatched_fn_call[[1L]]): object 'fn' not found
collected_result <- call_flow %>% collect()
#> Error in eval(lhs, parent, parent): object 'call_flow' not found