version bump - regression - data overview

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-04-02 11:31:04 +02:00
commit f249aaa9ab
No known key found for this signature in database
29 changed files with 2888 additions and 1239 deletions

View file

@ -0,0 +1,44 @@
#' Download demo
#'
#' @returns
#' @export
#'
#' @examples
#' \dontrun{
#' download_demo_app()
#' }
download_demo_app <- function() {
ui <- bslib::page_fixed(
bslib::nav_panel(
title = "test",
bslib::navset_bar(
sidebar = bslib::sidebar(
bslib::accordion(
do.call(
bslib::accordion_panel,
c(
list(
value = "acc_download",
title = "Download",
icon = bsicons::bs_icon("download")
),
plot_download_ui("regression")
)
)
)
)
)
)
)
server <- function(input, output, session) {
plot_download_server(
id = "regression",
data = {
lm(mpg ~ ., default_parsing(mtcars)) |>
gtsummary::tbl_regression() |>
plot(colour = "variable")
}
)
}
shiny::shinyApp(ui, server)
}