Skip to contents

Runs the code of a dataset

Usage

run_dataset_code(
  output,
  r = shiny::reactiveValues(),
  d = shiny::reactiveValues(),
  m = shiny::reactiveValues(),
  dataset_id = integer(),
  i18n = character()
)

Arguments

output

Shiny output variable

r

A shiny::reactiveValues object, used to communicate between modules

d

A shiny::reactiveValues object, used to communicate between modules. Contains data loaded from dataset code (d$patients, d$labs_vitals...).

m

A shiny::reactiveValues object, used to communicate between modules

dataset_id

ID of the dataset we want to load (integer)

i18n

Translator object from shiny.i18n library

Examples

if (FALSE) {
run_dataset_code(output = output, r = r, d = d, dataset_id = 3, i18n = i18n)
}