Is the object a flow object or a flow element?

is_flow(x)

Arguments

x

An object.

Value

A logical value, whether x is a flow object.

Examples

fn <- function(x, y) { x + y + 11 } flow_function <- flow_fn(1, 2, fn = fn)
#> New cache: fn=fn / fn_id=1 / fn_key=a738cc162753ad15
is_input_flow <- is_flow(flow_function)