is_current: Checks if the flow has a"current" state

Description Usage Arguments Value Examples

View source: R/flow-functions.R

Description

If there is no current state, e.g. right after make_flow_fn, the flow is "not flowing", it is preventing downstream flows from being computed.

Usage

1
is_current(flow)

Arguments

flow

A flow object, e.g. as returned by flow_fn.

Value

A logical value, whether the current state is valid.

Examples

1
2
3
fn <- function(x, y) { x + y + 8 }
flowed_fn <- flow_fn(1, 2, fn = fn) 
is_current_flow <- is_current(flowed_fn)

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