race_ports: Race ports function

Description Usage Arguments Examples

View source: R/verbs.R

Description

This function collapse ports into a single port and make them race (i.e. always return the last one updated)

Usage

1

Arguments

...

List of racing ports

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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({
  race_ports(
    mod(1)$getOutput(1),
    mod(2)$getOutput(1)
  ) %>1% mod(3)
})

## End(Not run)

xni7/tidymodules documentation built on Dec. 23, 2021, 7:10 p.m.