Skip to contents

Core teal functions

Main functions needed to build a teal app

init() stable
Create the server and UI function for the shiny app
teal_data_module() eval_code(<teal_data_module>,<character>) within(<teal_data_module>) experimental
Data module for teal applications
teal_transform_module() experimental
Data module for teal transformers.
ui_teal_with_splash() srv_teal_with_splash() deprecated
UI and server modules of teal
ui_teal() srv_teal() stable
teal main module
module() modules() format(<teal_module>) format(<teal_modules>) print(<teal_module>) print(<teal_modules>) set_datanames() stable
Create teal_module and teal_modules objects
teal_slices() as.teal_slices() c(<teal_slices>)
Filter settings for teal applications

Helper Functions

Helper functions for teal

build_app_title()
Build app title with favicon

Example module

A simple teal module

example_module() experimental
An example teal module

Creating reports

reporter_previewer_module() experimental
Create a teal module for previewing a report
TealReportCard experimental
TealReportCard
report_card_template()
Template function for TealReportCard creation and customization

Landing popup

landing_popup_module()
Landing popup module

Functions for module developers

Validation functions

validate_has_data() stable
Validate that dataset has a minimum number of observations
validate_has_elements() stable
Validates that vector has length greater than 0
validate_has_variable() stable
Validates that dataset contains specific variable
validate_in() stable
Validates that vector includes all expected values
validate_inputs()
Send input validation messages to output
validate_n_levels() stable
Validate that variables has expected number of levels
validate_no_intersection() stable
Validates no intersection between two vectors
validate_one_row_per_id() stable
Validate that dataset has unique rows for key variables