table_with_settings | R Documentation |
table_with_settings_ui(id, ...)
table_with_settings_srv(id, table_r, show_hide_signal = reactive(TRUE))
id |
An ID string that corresponds with the ID used to call the module's UI function. |
... |
( |
table_r |
( |
show_hide_signal |
( |
A shiny
module.
library(shiny)
library(rtables)
library(magrittr)
app <- shinyApp(
ui = fluidPage(
table_with_settings_ui(
id = "table_with_settings"
)
),
server = function(input, output, session) {
table_r <- reactive({
l <- basic_table() %>%
split_cols_by("ARM") %>%
analyze(c("SEX", "AGE"))
tbl <- build_table(l, DM)
tbl
})
table_with_settings_srv(id = "table_with_settings", table_r = table_r)
}
)
if (interactive()) {
app
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.