How insightsengineering/teal works
Project type and purpose
• This is an R package (“teal”) that provides a Shiny‐based interactive exploratory data‐analysis framework. It is not a standalone web app, but a library/framework that application authors use to assemble Shiny apps by supplying data and plugging in “teal modules.”
File structure
• Top‐level package structure:
• DESCRIPTION, NAMESPACE, R/, inst/, man/, tests/, vignettes/ – typical R package.
• inst/css, inst/js: static front‐end assets (CSS/JS) for Shiny.
• R/: contains core drivers, module definitions, data‐handling utilities, validation, logging, reporter, code‐repro modules.
• Key files in R/:
• TealAppDriver.R – initializes the Shiny app (init(), app$ui, app$server).
• tdata.R, teal_data_module.* – data ingestion & slicing.
• module_*.R – UI/server logic for filter panels, data summary, transform, bookmarking, snapshots, session info.
• teal_reporter.R, reporter_previewer_module.R – reporting engine.
• teal_modifiers.R, code utilities – reproducibility/tracking.
• utils.R, validations.R – shared helpers & input checks.
• External workflows/config: .github/workflows (CI, docs, release), .gitlab-ci.yml – continuous integration & deployment pipelines.
README for additional insights
• Describes how users call init(data =…, modules = list(module1, module2,…)).
• Lists core dependent packages: teal.data (data loader), teal.widgets (UI components), teal.slice (filter panel), teal.code (reproducibility), teal.logger (logging), teal.reporter (reports).
• Emphasizes modular structure: each “teal module” is a Shiny module with UI + server.