Get the data from an R6Flow
or an Element
object.
# S3 method for R6Flow collect(x, ...) # S3 method for Element collect(x, ...)
x | A flow object, e.g. as returned by |
---|---|
... | Name of the element of the output data to be selected.
If present, it must be named |
Data associated with the output of the function.
#>flow_result <- flowed_fn %>% collect() fn <- function(x, y) { list(x = x, y = y, z = 5) } flowed_fn <- flow_fn(2, 3, fn = fn)#>flow_result <- flowed_fn %>% collect() flow_element <- element(flowed_fn, "x") collected_element_value <- collect(flow_element)