add: Add a new Node to a Flow (input or function)

Description Usage Arguments Value

View source: R/add_elements_flow.R

Description

Add a new Node to a Flow (input or function)

Usage

1
add(flow, what = NULL, inputs = NULL, output = NULL, ...)

Arguments

flow

(a NIflow object) The flow where to add the new node

what

(a function, optional) If present, the function to add as a node to the flow.

inputs

(a vector of names, required) The names of new inputs to add to the flow, or the required inputs for the what function.

output

(a character string) The name of the output provided by the what function.

...

named parameters to pass to what.

Value

An invisible instance of the flow, with the node added.


neuroimaginador/wf4ni documentation built on Oct. 15, 2019, 9:26 a.m.