library(shiny)
library(teal.widgets)
adtte_filters <- filter_spec(
vars = c("PARAMCD", "CNSR"),
sep = "-",
choices = c("OS-1" = "OS-1", "OS-0" = "OS-0", "PFS-1" = "PFS-1"),
selected = "OS-1",
multiple = FALSE,
label = "Choose endpoint and Censor"
)
response_spec <- data_extract_spec(
dataname = "ADTTE",
filter = adtte_filters,
select = select_spec(
choices = c("AVAL", "BMRKR1", "AGE"),
selected = c("AVAL", "BMRKR1"),
multiple = TRUE,
fixed = FALSE,
label = "Column"
)
)
# Call to use inside your teal module UI function
standard_layout(
output = tableOutput("table"),
encoding = div(
data_extract_ui(
id = "regressor",
label = "Regressor Variable",
data_extract_spec = response_spec
)
)
)
Run the code above in your browser using DataLab