flow_ns_sink: Write a value to a namespace only if the value has changed.

Description Usage Arguments Value Examples

Description

Write a value to a namespace only if the value has changed.

Usage

1

Arguments

x

Value to assign.

var_name

The name (as string) of the variable.

ns

The name space, either an environment or a Shiny::reactiveValues object.

flow_options

List of options created using get_flow_options. All options except excluded_arg and eddy are ignored.

Value

The flow object

Examples

1
2
3
fn <- function(x, y) { x + y }
flowed_fn <- flow_fn(1, 2, fn = fn)
sunk_flow <- flow_ns_sink(flowed_fn, "test_sink_flow", new.env()) 

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