Shiny app development patterns with bslib for cardiometR. Use when building Shiny UI components, creating modules, implementing i18n support, or designing the interactive CPET analysis interface.
R/
├── run_app.R # App launcher: run_app()
├── app_ui.R # Main UI assembly
├── app_server.R # Main server logic
├── mod_upload.R # File upload module
├── mod_participant.R # Participant info form
├── mod_settings.R # Analysis settings
├── mod_preview.R # Data preview/plots
└── mod_report.R # Report generation
app_ui <- function() {
bslib::page_navbar(
title = "CPET Lab",
theme = bslib::bs_theme(
bootswatch = "flatly",
primary = "#0d6efd"
),
nav_panel("Upload", mod_upload_ui("upload")),
nav_panel("Configure", mod_settings_ui("settings")),
nav_panel("Preview", mod_preview_ui("preview")),
nav_panel("Report", mod_report_ui("report"))
)
}