Skip to contents

Dispatch is a helper function that allows accessing data and utility functions inside module manager in a dynamic way.

Usage

mm_dispatch(from, selection = character(0))

Arguments

from

a string indicating what structure do we want to access inside module manager

selection

an optional subsetting within the selected data structure

Details

The parameter from can take the following values:

  • unfiltered_dataset

  • filtered_dataset

  • url_parameters

  • module_output

  • utils

See also

mm_resolve_dispatcher

Examples


mm_dispatch("unfiltered_dataset", "adsl")
#> $from
#> [1] "unfiltered_dataset"
#> 
#> $selection
#> [1] "adsl"
#> 
#> attr(,"class")
#> [1] "mm_dispatcher"
mm_dispatch("utils", "switch2")
#> $from
#> [1] "utils"
#> 
#> $selection
#> [1] "switch2"
#> 
#> attr(,"class")
#> [1] "mm_dispatcher"