combine_ports: Combine ports function

View source: R/verbs.R

combine_portsR Documentation

Combine ports function

Description

This function combines ports into a reactive list (reactiveValues)

Usage

combine_ports(...)

Arguments

...

key/value pairs of ports

Examples

## Not run: 
# Somewhere in the app...
MyModule <- R6::R6Class("MyModule", inherit = tidymodules::TidyModule)
MyModule$new("Mod1")
MyModule$new("Mod2")
MyModule$new("Mod3")

# Must be in the server code and after calling the modules!
callModules()
observe({
  combine_ports(
    input_1 = mod(1)$getOutput(1),
    input_2 = mod(2)$getOutput(1)
  ) %>1% mod(3)
})

## End(Not run)


Novartis/tidymodules documentation built on Feb. 27, 2023, 8:35 a.m.