diff --git a/main/404.html b/main/404.html index fb3001bc54..fe8d16917e 100644 --- a/main/404.html +++ b/main/404.html @@ -25,7 +25,7 @@ teal - 0.14.0.9043 + 0.14.0.9044
data_with_code #> ✅︎ verified teal_data object -#> <environment: 0x5600af637798> [L] +#> <environment: 0x560a341781b8> [L] #> Parent: <environment: package:teal> #> Bindings: #> • not_a_dataset: <chr> [L] @@ -423,7 +413,7 @@ data_with_objects_and_code <- teal_data(iris = iris, cars = mtcars, code = expression(iris <- iris, cars <- mtcars)) data_with_objects_and_code #> ✖ unverified teal_data object -#> <environment: 0x5600afad9d90> [L] +#> <environment: 0x560a3462daa8> [L] #> Parent: <environment: package:teal> #> Bindings: #> • cars: <df[,11]> [L] @@ -432,7 +422,7 @@ data_with_objects_and_code_ver <- verify(data_with_objects_and_code) data_with_objects_and_code_ver #> ✅︎ verified teal_data object -#> <environment: 0x5600afad9d90> [L] +#> <environment: 0x560a3462daa8> [L] #> Parent: <environment: package:teal> #> Bindings: #> • cars: <df[,11]> [L] diff --git a/main/articles/index.html b/main/articles/index.html index 803d5e61d2..c6aefbe767 100644 --- a/main/articles/index.html +++ b/main/articles/index.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/articles/teal-options.html b/main/articles/teal-options.html index e952020d14..e5df33443c 100644 --- a/main/articles/teal-options.html +++ b/main/articles/teal-options.html @@ -27,7 +27,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -82,16 +82,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/authors.html b/main/authors.html index d3d228ae2a..591a836cd5 100644 --- a/main/authors.html +++ b/main/authors.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -171,14 +161,14 @@ Citation Kaledkowski D, Rucki P, Chlebowski A, Kirar K, Kosinski M, Waddell A, Burkoff N, Hallal M, Nasinski M, Pagacz K, Zhao J (2024). teal: Exploratory Web Apps for Analyzing Clinical Trials Data. -R package version 0.14.0.9043, +R package version 0.14.0.9044, https://github.com/insightsengineering/teal/, https://insightsengineering.github.io/teal/. @Manual{, title = {teal: Exploratory Web Apps for Analyzing Clinical Trials Data}, author = {Dawid Kaledkowski and Pawel Rucki and Aleksander Chlebowski and Kartikeya Kirar and Marcin Kosinski and Adrian Waddell and Nikolas Burkoff and Mahmoud Hallal and Maciej Nasinski and Konrad Pagacz and Junlue Zhao}, year = {2024}, - note = {R package version 0.14.0.9043, + note = {R package version 0.14.0.9044, https://github.com/insightsengineering/teal/}, url = {https://insightsengineering.github.io/teal/}, } diff --git a/main/index.html b/main/index.html index 161c7acd7d..9641e83ef6 100644 --- a/main/index.html +++ b/main/index.html @@ -33,7 +33,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -88,16 +88,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/news/index.html b/main/news/index.html index ca5470715e..3ad0359b16 100644 --- a/main/news/index.html +++ b/main/news/index.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -102,16 +92,16 @@ Features -teal 0.14.0.9043 +teal 0.14.0.9044 -New features +New features Added landing_popup_module function which creates a module that will display a popup when the app starts. The popup will block access to the app until it is dismissed. Filter state snapshots can now be uploaded from file. See ?snapshot. Added as_tdata function to facilitate migration of modules to the new teal_data class. Added build_app_title function to facilitate adding favicons to app title. -Breaking changes +Breaking changes data argument in init now accepts only teal_data and teal_data_module. @@ -123,14 +113,14 @@ Breaking changesChanged the order of formal arguments in init. filter now comes directly after modules, before title. -Miscellaneous +Miscellaneous Enhanced a module validation checks so that it won’t throw messages about data argument unnecessarily. Added argument to teal_slices and made modifications to init to enable tagging teal_slices with an app id to safely upload snapshots from disk. FilteredData no longer stores pre-processing code in specific slots. Code is now attached as attribute. Adjusted appropriately. -Bug fixes +Bug fixes Removed Report previewer module from mapping matrix display in filter manager. Specified minimal version of package dependencies. diff --git a/main/pkgdown.yml b/main/pkgdown.yml index 891e1809d1..163d2abb29 100644 --- a/main/pkgdown.yml +++ b/main/pkgdown.yml @@ -19,7 +19,7 @@ articles: getting-started-with-teal: getting-started-with-teal.html including-data-in-teal-applications: including-data-in-teal-applications.html teal-options: teal-options.html -last_built: 2024-02-07T11:16Z +last_built: 2024-02-07T15:28Z urls: reference: https://insightsengineering.github.io/teal/reference article: https://insightsengineering.github.io/teal/articles diff --git a/main/pull_request_template.html b/main/pull_request_template.html index 9910c58c6b..f234aac92b 100644 --- a/main/pull_request_template.html +++ b/main/pull_request_template.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/TealReportCard.html b/main/reference/TealReportCard.html index 248681174f..246cd2c3be 100644 --- a/main/reference/TealReportCard.html +++ b/main/reference/TealReportCard.html @@ -18,7 +18,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -72,16 +72,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/TealSlicesBlock.html b/main/reference/TealSlicesBlock.html index d4c6a8c792..898a0140b8 100644 --- a/main/reference/TealSlicesBlock.html +++ b/main/reference/TealSlicesBlock.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/append_module.html b/main/reference/append_module.html index add0c9da73..8fcb99a099 100644 --- a/main/reference/append_module.html +++ b/main/reference/append_module.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/build_app_title.html b/main/reference/build_app_title.html index f511a9de31..9909caf280 100644 --- a/main/reference/build_app_title.html +++ b/main/reference/build_app_title.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/calculate_hashes.html b/main/reference/calculate_hashes.html index 5c7ac33df2..a36166eb24 100644 --- a/main/reference/calculate_hashes.html +++ b/main/reference/calculate_hashes.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/check_filter_datanames.html b/main/reference/check_filter_datanames.html index cd7f62e0f9..2f7c54e0c2 100644 --- a/main/reference/check_filter_datanames.html +++ b/main/reference/check_filter_datanames.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/check_modules_datanames.html b/main/reference/check_modules_datanames.html index 698035a25b..062649697d 100644 --- a/main/reference/check_modules_datanames.html +++ b/main/reference/check_modules_datanames.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/create_app_id.html b/main/reference/create_app_id.html index 672632d548..26a05d128d 100644 --- a/main/reference/create_app_id.html +++ b/main/reference/create_app_id.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/deep_copy_filter.html b/main/reference/deep_copy_filter.html index 95aca801a2..905d7313c6 100644 --- a/main/reference/deep_copy_filter.html +++ b/main/reference/deep_copy_filter.html @@ -16,7 +16,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -70,16 +70,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/dot-datasets_to_data.html b/main/reference/dot-datasets_to_data.html index 7538c3a772..90b3fcf81e 100644 --- a/main/reference/dot-datasets_to_data.html +++ b/main/reference/dot-datasets_to_data.html @@ -14,7 +14,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -68,16 +68,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/example_module.html b/main/reference/example_module.html index 928087992d..255e9b0c31 100644 --- a/main/reference/example_module.html +++ b/main/reference/example_module.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/filter_manager_module_srv.html b/main/reference/filter_manager_module_srv.html index 33fb0a1639..a086d9df73 100644 --- a/main/reference/filter_manager_module_srv.html +++ b/main/reference/filter_manager_module_srv.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/get_client_timezone.html b/main/reference/get_client_timezone.html index 94b08eab2b..ba79a8f939 100644 --- a/main/reference/get_client_timezone.html +++ b/main/reference/get_client_timezone.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/get_code_tdata.html b/main/reference/get_code_tdata.html index 913d88083c..b03b1eb255 100644 --- a/main/reference/get_code_tdata.html +++ b/main/reference/get_code_tdata.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/get_datasets_code.html b/main/reference/get_datasets_code.html index 0dce583015..68d558a1b8 100644 --- a/main/reference/get_datasets_code.html +++ b/main/reference/get_datasets_code.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/get_metadata.html b/main/reference/get_metadata.html index 1f2db1a918..6da159e00c 100644 --- a/main/reference/get_metadata.html +++ b/main/reference/get_metadata.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/get_rcode_libraries.html b/main/reference/get_rcode_libraries.html index 8014ee1a9b..701718e9af 100644 --- a/main/reference/get_rcode_libraries.html +++ b/main/reference/get_rcode_libraries.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/include_css_files.html b/main/reference/include_css_files.html index ef98c7f52f..e7372513eb 100644 --- a/main/reference/include_css_files.html +++ b/main/reference/include_css_files.html @@ -14,7 +14,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -68,16 +68,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/include_js_files.html b/main/reference/include_js_files.html index 0666ec03f4..a50bef5f77 100644 --- a/main/reference/include_js_files.html +++ b/main/reference/include_js_files.html @@ -14,7 +14,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -68,16 +68,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/include_teal_css_js.html b/main/reference/include_teal_css_js.html index efb81d883c..8e1eb37291 100644 --- a/main/reference/include_teal_css_js.html +++ b/main/reference/include_teal_css_js.html @@ -18,7 +18,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -72,16 +72,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -134,17 +124,6 @@ Details Simply add include_teal_css_js() as one of the UI elements. - - Examples - # use non-exported function from teal -include_teal_css_js <- getFromNamespace("include_teal_css_js", "teal") -shiny_ui <- tagList( - include_teal_css_js(), - p("Hello") -) - - - diff --git a/main/reference/index.html b/main/reference/index.html index 4991b83bbf..6add191cca 100644 --- a/main/reference/index.html +++ b/main/reference/index.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/init.html b/main/reference/init.html index 751860ab1b..fa81bd8319 100644 --- a/main/reference/init.html +++ b/main/reference/init.html @@ -14,7 +14,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -68,16 +68,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/is_arg_used.html b/main/reference/is_arg_used.html index e49f142bb8..5a5c5a2ac0 100644 --- a/main/reference/is_arg_used.html +++ b/main/reference/is_arg_used.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/join_keys.tdata.html b/main/reference/join_keys.tdata.html index 542f4b6086..9ff731da45 100644 --- a/main/reference/join_keys.tdata.html +++ b/main/reference/join_keys.tdata.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/landing_popup_module.html b/main/reference/landing_popup_module.html index 840dcd2b13..05b3a42b9c 100644 --- a/main/reference/landing_popup_module.html +++ b/main/reference/landing_popup_module.html @@ -14,7 +14,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -68,16 +68,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -160,7 +150,7 @@ Examples example_module() ) ) -#> [INFO] 2024-02-07 11:17:02.3589 pid:932 token:[] teal Initializing landing_popup_module +#> [INFO] 2024-02-07 15:29:08.0053 pid:931 token:[] teal Initializing landing_popup_module #> module "Landing Popup" server function takes no data so "datanames" will be ignored if (interactive()) { shinyApp(app1$ui, app1$server) @@ -186,7 +176,7 @@ Examples example_module() ) ) -#> [INFO] 2024-02-07 11:17:02.4103 pid:932 token:[] teal Initializing landing_popup_module +#> [INFO] 2024-02-07 15:29:08.0568 pid:931 token:[] teal Initializing landing_popup_module #> module "Landing Popup" server function takes no data so "datanames" will be ignored if (interactive()) { diff --git a/main/reference/matrix_to_mapping.html b/main/reference/matrix_to_mapping.html index 10ade8ed73..b4285c12cd 100644 --- a/main/reference/matrix_to_mapping.html +++ b/main/reference/matrix_to_mapping.html @@ -16,7 +16,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -70,16 +70,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/module_filter_manager.html b/main/reference/module_filter_manager.html index d96afe5686..fabb396270 100644 --- a/main/reference/module_filter_manager.html +++ b/main/reference/module_filter_manager.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/module_filter_manager_modal.html b/main/reference/module_filter_manager_modal.html index 9692632a8c..b28f0b50c0 100644 --- a/main/reference/module_filter_manager_modal.html +++ b/main/reference/module_filter_manager_modal.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -134,51 +124,6 @@ Arguments - Examples - # use non-exported function from teal -filter_manager_modal_ui <- getFromNamespace("filter_manager_modal_ui", "teal") -filter_manager_modal_srv <- getFromNamespace("filter_manager_modal_srv", "teal") - -fd1 <- teal.slice::init_filtered_data(list(iris = list(dataset = iris))) -fd2 <- teal.slice::init_filtered_data( - list(iris = list(dataset = iris), mtcars = list(dataset = mtcars)) -) -fd3 <- teal.slice::init_filtered_data( - list(iris = list(dataset = iris), women = list(dataset = women)) -) -filter <- teal_slices( - teal.slice::teal_slice(dataname = "iris", varname = "Sepal.Length"), - teal.slice::teal_slice(dataname = "iris", varname = "Species"), - teal.slice::teal_slice(dataname = "mtcars", varname = "mpg"), - teal.slice::teal_slice(dataname = "women", varname = "height"), - mapping = list( - module2 = c("mtcars mpg"), - module3 = c("women height"), - global_filters = "iris Species" - ) -) - -ui <- fluidPage( - filter_manager_modal_ui("manager") -) - -server <- function(input, output, session) { - observe({ - filter_manager_modal_srv( - "manager", - filtered_data_list = list(module1 = fd1, module2 = fd2, module3 = fd3), - filter = filter - ) - }) -} - -if (interactive()) { - shinyApp(ui, server) -} - - - diff --git a/main/reference/module_labels.html b/main/reference/module_labels.html index 7bc9985b1b..196916d65e 100644 --- a/main/reference/module_labels.html +++ b/main/reference/module_labels.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/module_management.html b/main/reference/module_management.html index 8e6bd167db..a3ffcd5dfe 100644 --- a/main/reference/module_management.html +++ b/main/reference/module_management.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/module_nested_tabs.html b/main/reference/module_nested_tabs.html index bbfdc34f0a..a9d26aa94b 100644 --- a/main/reference/module_nested_tabs.html +++ b/main/reference/module_nested_tabs.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -218,72 +208,6 @@ srv_nested_tabsteal_modules also returns module active within self which is determined by the input$active_tab. - - Examples - # use non-exported function from teal -include_teal_css_js <- getFromNamespace("include_teal_css_js", "teal") -teal_data_to_filtered_data <- getFromNamespace("teal_data_to_filtered_data", "teal") -ui_nested_tabs <- getFromNamespace("ui_nested_tabs", "teal") -srv_nested_tabs <- getFromNamespace("srv_nested_tabs", "teal") - -# create `teal_data` -data <- teal_data(iris = iris, mtcars = mtcars) -datanames <- datanames(data) - -# creates a hierarchy of `teal_modules` from which a `teal` app can be created. -mods <- modules( - label = "d1", - modules( - label = "d2", - modules( - label = "d3", - example_module(label = "aaa1", datanames = datanames), - example_module(label = "aaa2", datanames = datanames) - ), - example_module(label = "bbb", datanames = datanames) - ), - example_module(label = "ccc", datanames = datanames) -) - -# creates nested list aligned with the module hierarchy created above, -# each leaf holding the same `FilteredData` object. -datasets <- teal_data_to_filtered_data(data) -datasets <- list( - "d2" = list( - "d3" = list( - "aaa1" = datasets, - "aaa2" = datasets - ), - "bbb" = datasets - ), - "ccc" = datasets -) - -ui <- function() { - tagList( - include_teal_css_js(), - textOutput("info"), - fluidPage( # needed for nice tabs - ui_nested_tabs("dummy", modules = mods, datasets = datasets) - ) - ) -} -server <- function(input, output, session) { - active_module <- srv_nested_tabs( - "dummy", - datasets = datasets, - modules = mods - ) - output$info <- renderText({ - paste0("The currently active tab name is ", active_module()$label) - }) -} -if (interactive()) { - shinyApp(ui, server) -} - - - diff --git a/main/reference/module_tabs_with_filters.html b/main/reference/module_tabs_with_filters.html index 06b2a6e980..2fb5fb3ca2 100644 --- a/main/reference/module_tabs_with_filters.html +++ b/main/reference/module_tabs_with_filters.html @@ -14,7 +14,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -68,16 +68,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -169,68 +159,6 @@ Details panel is inserted at the right of the modules at depth 1 and not at the leaves. - - Examples - # use non-exported function from teal -include_teal_css_js <- getFromNamespace("include_teal_css_js", "teal") -teal_data_to_filtered_data <- getFromNamespace("teal_data_to_filtered_data", "teal") -ui_tabs_with_filters <- getFromNamespace("ui_tabs_with_filters", "teal") -srv_tabs_with_filters <- getFromNamespace("srv_tabs_with_filters", "teal") - -# creates `teal_data` -data <- teal_data(iris = iris, mtcars = mtcars) -datanames <- datanames(data) - -# creates a hierarchy of `teal_modules` from which a `teal` app can be created. -mods <- modules( - label = "d1", - modules( - label = "d2", - modules( - label = "d3", - example_module(label = "aaa1", datanames = datanames), - example_module(label = "aaa2", datanames = datanames) - ), - example_module(label = "bbb", datanames = datanames) - ), - example_module(label = "ccc", datanames = datanames) -) - -# creates nested list aligned with the module hierarchy created above, -# each leaf holding the same `FilteredData` object. -datasets <- teal_data_to_filtered_data(data) -datasets <- list( - "d2" = list( - "d3" = list( - "aaa1" = datasets, - "aaa2" = datasets - ), - "bbb" = datasets - ), - "ccc" = datasets -) - -ui <- function() { - tagList( - include_teal_css_js(), - textOutput("info"), - fluidPage( # needed for nice tabs - ui_tabs_with_filters("dummy", modules = mods, datasets = datasets) - ) - ) -} -server <- function(input, output, session) { - output$info <- renderText({ - paste0("The currently active tab name is ", active_module()$label) - }) - active_module <- srv_tabs_with_filters(id = "dummy", datasets = datasets, modules = mods) -} - -if (interactive()) { - shinyApp(ui, server) -} - - diff --git a/main/reference/module_teal.html b/main/reference/module_teal.html index 963556a1e0..b3c7986350 100644 --- a/main/reference/module_teal.html +++ b/main/reference/module_teal.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -192,33 +182,6 @@ Details It is written as a shiny module so it can be added into other apps as well. - - Examples - # use non-exported function from teal -ui_teal <- getFromNamespace("ui_teal", "teal") -srv_teal <- getFromNamespace("srv_teal", "teal") - -mods <- modules( - label = "example app", - example_module(label = "example dataset", datanames = c("iris", "mtcars")) -) - -teal_data_rv <- reactive(teal_data(iris = iris, mtcars = mtcars)) - -ui <- function() { - ui_teal("dummy") -} - -server <- function(input, output, session) { - active_module <- srv_teal(id = "dummy", modules = mods, teal_data_rv = teal_data_rv) -} - -if (interactive()) { - shinyApp(ui, server) -} - - - diff --git a/main/reference/module_teal_with_splash.html b/main/reference/module_teal_with_splash.html index 05cba070ca..0ca3c3dc41 100644 --- a/main/reference/module_teal_with_splash.html +++ b/main/reference/module_teal_with_splash.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/modules_depth.html b/main/reference/modules_depth.html index 4acf3e1076..d52e4007a1 100644 --- a/main/reference/modules_depth.html +++ b/main/reference/modules_depth.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -135,42 +125,6 @@ ValueDepth level for given module. - - Examples - # use non-exported function from teal -modules_depth <- getFromNamespace("modules_depth", "teal") - -mods <- modules( - label = "d1", - modules( - label = "d2", - modules( - label = "d3", - module(label = "aaa1"), module(label = "aaa2"), module(label = "aaa3") - ), - module(label = "bbb") - ), - module(label = "ccc") -) -#> module "aaa1" server function takes no data so "datanames" will be ignored -#> module "aaa2" server function takes no data so "datanames" will be ignored -#> module "aaa3" server function takes no data so "datanames" will be ignored -#> module "bbb" server function takes no data so "datanames" will be ignored -#> module "ccc" server function takes no data so "datanames" will be ignored -stopifnot(modules_depth(mods) == 3L) - -mods <- modules( - label = "a", - modules( - label = "b1", module(label = "c") - ), - module(label = "b2") -) -#> module "c" server function takes no data so "datanames" will be ignored -#> module "b2" server function takes no data so "datanames" will be ignored -stopifnot(modules_depth(mods) == 2L) - - diff --git a/main/reference/reexports.html b/main/reference/reexports.html index 0778c4e4b8..9b2077135a 100644 --- a/main/reference/reexports.html +++ b/main/reference/reexports.html @@ -32,7 +32,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -86,16 +86,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/report_card_template.html b/main/reference/report_card_template.html index 8685685069..db678b6a4f 100644 --- a/main/reference/report_card_template.html +++ b/main/reference/report_card_template.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/reporter_previewer_module.html b/main/reference/reporter_previewer_module.html index 032e2f3f8f..20fbd4e712 100644 --- a/main/reference/reporter_previewer_module.html +++ b/main/reference/reporter_previewer_module.html @@ -22,7 +22,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -76,16 +76,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/resolve_modules_datanames.html b/main/reference/resolve_modules_datanames.html index c03d2dad0e..73ef3eb8aa 100644 --- a/main/reference/resolve_modules_datanames.html +++ b/main/reference/resolve_modules_datanames.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/run_js_files.html b/main/reference/run_js_files.html index ef5cfcdd02..55dc07cabb 100644 --- a/main/reference/run_js_files.html +++ b/main/reference/run_js_files.html @@ -16,7 +16,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -70,16 +70,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/show_rcode_modal.html b/main/reference/show_rcode_modal.html index e7fe1832e2..76c5bc834d 100644 --- a/main/reference/show_rcode_modal.html +++ b/main/reference/show_rcode_modal.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/slices_store.html b/main/reference/slices_store.html index 5ee46e95d6..e5a091433a 100644 --- a/main/reference/slices_store.html +++ b/main/reference/slices_store.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -151,32 +141,6 @@ See alsoteal_slices() - - Examples - # use non-exported function from teal -slices_store <- getFromNamespace("slices_store", "teal") - -# Create a teal_slices object -tss <- teal_slices( - teal_slice(dataname = "data", varname = "var"), - teal_slice(dataname = "data", expr = "x > 0", id = "positive_x", title = "Positive x") -) - -slices_path <- tempfile(pattern = "teal_slices", fileext = ".json") -print(slices_path) -#> [1] "/tmp/Rtmp5ZjPWb/teal_slices3a462f4ff40.json" - -# Store the teal_slices object to a file -slices_store(tss, slices_path) - -# use non-exported function from teal -slices_restore <- getFromNamespace("slices_restore", "teal") - -# Restore a teal_slices object from a file -tss_restored <- slices_restore(slices_path) - - - diff --git a/main/reference/snapshot_manager_module.html b/main/reference/snapshot_manager_module.html index 3c91948d68..ffa64667f8 100644 --- a/main/reference/snapshot_manager_module.html +++ b/main/reference/snapshot_manager_module.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/tdata.html b/main/reference/tdata.html index 48ee1466f1..3647607785 100644 --- a/main/reference/tdata.html +++ b/main/reference/tdata.html @@ -24,7 +24,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -78,16 +78,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/tdata2env.html b/main/reference/tdata2env.html index 05ed39faf4..5b26ec9d13 100644 --- a/main/reference/tdata2env.html +++ b/main/reference/tdata2env.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/tdata_deprecation.html b/main/reference/tdata_deprecation.html index 52a3ea3e9a..7aa1f033ae 100644 --- a/main/reference/tdata_deprecation.html +++ b/main/reference/tdata_deprecation.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -138,7 +128,7 @@ Examplestd <- within(td, iris <- iris) %>% within(mtcars <- mtcars) td #> ✅︎ verified teal_data object -#> <environment: 0x55c786cfdd98> [L] +#> <environment: 0x55a14f1c0a90> [L] #> Parent: <environment: devtools_shims> #> Bindings: #> • mtcars: <df[,11]> [L] diff --git a/main/reference/teal-package.html b/main/reference/teal-package.html index 507ffc7d1e..f3012b280e 100644 --- a/main/reference/teal-package.html +++ b/main/reference/teal-package.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/teal_data_datanames.html b/main/reference/teal_data_datanames.html index 27434c30db..d432cf1cb5 100644 --- a/main/reference/teal_data_datanames.html +++ b/main/reference/teal_data_datanames.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/teal_data_module.html b/main/reference/teal_data_module.html index 39a4e3e493..4e335aedd8 100644 --- a/main/reference/teal_data_module.html +++ b/main/reference/teal_data_module.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports @@ -216,7 +206,7 @@ Examples#> ns <- NS(id) #> object$ui(ns("mutate_inner")) #> } -#> <environment: 0x55c782e6dbc0> +#> <environment: 0x55a151cf2e90> #> #> $server #> function(id) { @@ -240,7 +230,7 @@ Examples#> td #> }) #> } -#> <environment: 0x55c782e6dbc0> +#> <environment: 0x55a151cf2e90> #> #> attr(,"class") #> [1] "teal_data_module" @@ -251,7 +241,7 @@ Examples#> ns <- NS(id) #> object$ui(ns("mutate_inner")) #> } -#> <environment: 0x55c782afae18> +#> <environment: 0x55a151d13740> #> #> $server #> function(id) { @@ -275,7 +265,7 @@ Examples#> td #> }) #> } -#> <environment: 0x55c782afae18> +#> <environment: 0x55a151d13740> #> #> attr(,"class") #> [1] "teal_data_module" @@ -288,7 +278,7 @@ Examples#> ns <- NS(id) #> object$ui(ns("mutate_inner")) #> } -#> <environment: 0x55c782112a98> +#> <environment: 0x55a1516a8e90> #> #> $server #> function(id) { @@ -312,7 +302,7 @@ Examples#> td #> }) #> } -#> <environment: 0x55c782112a98> +#> <environment: 0x55a1516a8e90> #> #> attr(,"class") #> [1] "teal_data_module" diff --git a/main/reference/teal_data_to_filtered_data.html b/main/reference/teal_data_to_filtered_data.html index c0ff8cb3e6..f5c75da071 100644 --- a/main/reference/teal_data_to_filtered_data.html +++ b/main/reference/teal_data_to_filtered_data.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/teal_modules.html b/main/reference/teal_modules.html index e42387615b..45d274f239 100644 --- a/main/reference/teal_modules.html +++ b/main/reference/teal_modules.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/teal_slices.html b/main/reference/teal_slices.html index 61e34f02ed..c1ad3fc26f 100644 --- a/main/reference/teal_slices.html +++ b/main/reference/teal_slices.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/unfold_mapping.html b/main/reference/unfold_mapping.html index bda7805a32..7918664adb 100644 --- a/main/reference/unfold_mapping.html +++ b/main/reference/unfold_mapping.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_app_title_tag.html b/main/reference/validate_app_title_tag.html index 2e3a9adadc..9077f3af6e 100644 --- a/main/reference/validate_app_title_tag.html +++ b/main/reference/validate_app_title_tag.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_has_data.html b/main/reference/validate_has_data.html index a2e3effd1a..8040532b95 100644 --- a/main/reference/validate_has_data.html +++ b/main/reference/validate_has_data.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_has_elements.html b/main/reference/validate_has_elements.html index 295b076ab9..14749e0580 100644 --- a/main/reference/validate_has_elements.html +++ b/main/reference/validate_has_elements.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_has_variable.html b/main/reference/validate_has_variable.html index 3f8797199e..efd50ac7e2 100644 --- a/main/reference/validate_has_variable.html +++ b/main/reference/validate_has_variable.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_in.html b/main/reference/validate_in.html index dae97f1940..463cf530df 100644 --- a/main/reference/validate_in.html +++ b/main/reference/validate_in.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_inputs.html b/main/reference/validate_inputs.html index b7f2ddacb8..ba8a9c0cea 100644 --- a/main/reference/validate_inputs.html +++ b/main/reference/validate_inputs.html @@ -12,7 +12,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -66,16 +66,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_n_levels.html b/main/reference/validate_n_levels.html index e8582dd136..eb435e9f7c 100644 --- a/main/reference/validate_n_levels.html +++ b/main/reference/validate_n_levels.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_no_intersection.html b/main/reference/validate_no_intersection.html index f9bf123af7..fbea957c04 100644 --- a/main/reference/validate_no_intersection.html +++ b/main/reference/validate_no_intersection.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/reference/validate_one_row_per_id.html b/main/reference/validate_one_row_per_id.html index 635e208f9c..2fdee947f7 100644 --- a/main/reference/validate_one_row_per_id.html +++ b/main/reference/validate_one_row_per_id.html @@ -10,7 +10,7 @@ teal - 0.14.0.9043 + 0.14.0.9044 part of @@ -64,16 +64,6 @@ Features Changelog - - Versions main -latest-tag -v0.14.0 -v0.13.0 -v0.12.0 - Reports diff --git a/main/search.json b/main/search.json index d62d23da06..6f8c4ae0fb 100644 --- a/main/search.json +++ b/main/search.json @@ -1 +1 @@ -[{"path":[]},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement [INSERT CONTACT METHOD]. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired Mozilla’s code conduct enforcement ladder. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contribution Guidelines","title":"Contribution Guidelines","text":"🙏 Thank taking time contribute! input deeply valued, whether issue, pull request, even feedback, regardless size, content scope.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"table-of-contents","dir":"","previous_headings":"","what":"Table of contents","title":"Contribution Guidelines","text":"👶 Getting started 📔 Code Conduct 🗃 License 📜 Issues 🚩 Pull requests 💻 Coding guidelines 🏆 Recognition model ❓ Questions","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"getting-started","dir":"","previous_headings":"","what":"Getting started","title":"Contribution Guidelines","text":"Please refer project documentation brief introduction. Please also see articles within project documentation additional information.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contribution Guidelines","text":"Code Conduct governs project. Participants contributors expected follow rules outlined therein.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"license","dir":"","previous_headings":"","what":"License","title":"Contribution Guidelines","text":"contributions covered project’s license.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contribution Guidelines","text":"use GitHub track issues, feature requests, bugs. submitting new issue, please check issue already reported. issue already exists, please upvote existing issue 👍. new feature requests, please elaborate context benefit feature users, developers, relevant personas.","code":""},{"path":[]},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"github-flow","dir":"","previous_headings":"Pull requests","what":"GitHub Flow","title":"Contribution Guidelines","text":"repository uses GitHub Flow model collaboration. submit pull request: Create branch Please see branch naming convention . don’t write access repository, please fork . Make changes Make sure code passes checks imposed GitHub Actions well documented well tested unit tests sufficiently covering changes introduced Create pull request (PR) pull request description, please link relevant issue (), provide detailed description change, include assumptions. Address review comments, Post approval Merge PR write access. Otherwise, reviewer merge PR behalf. Pat back Congratulations! 🎉 now official contributor project! grateful contribution.","code":""},{"path":"https://insightsengineering.github.io/teal/main/CONTRIBUTING.html","id":"branch-naming-convention","dir":"","previous_headings":"Pull requests","what":"Branch naming convention","title":"Contribution Guidelines","text":"Suppose changes related current issue current project; please name branch follows: _. Please use underscore (_) delimiter word separation. example, 420_fix_ui_bug suitable branch name change resolving UI-related bug reported issue number 420 current project. change affects multiple repositories, please name branches follows: __
Kaledkowski D, Rucki P, Chlebowski A, Kirar K, Kosinski M, Waddell A, Burkoff N, Hallal M, Nasinski M, Pagacz K, Zhao J (2024). teal: Exploratory Web Apps for Analyzing Clinical Trials Data. -R package version 0.14.0.9043, +R package version 0.14.0.9044, https://github.com/insightsengineering/teal/, https://insightsengineering.github.io/teal/.
@Manual{, title = {teal: Exploratory Web Apps for Analyzing Clinical Trials Data}, author = {Dawid Kaledkowski and Pawel Rucki and Aleksander Chlebowski and Kartikeya Kirar and Marcin Kosinski and Adrian Waddell and Nikolas Burkoff and Mahmoud Hallal and Maciej Nasinski and Konrad Pagacz and Junlue Zhao}, year = {2024}, - note = {R package version 0.14.0.9043, + note = {R package version 0.14.0.9044, https://github.com/insightsengineering/teal/}, url = {https://insightsengineering.github.io/teal/}, }
landing_popup_module
?snapshot
as_tdata
teal_data
build_app_title
data
init
teal_data_module
filter
modules
title
module
teal_slices
FilteredData
Report previewer
Simply add include_teal_css_js() as one of the UI elements.
include_teal_css_js()
# use non-exported function from teal -include_teal_css_js <- getFromNamespace("include_teal_css_js", "teal") -shiny_ui <- tagList( - include_teal_css_js(), - p("Hello") -) - -
# use non-exported function from teal -filter_manager_modal_ui <- getFromNamespace("filter_manager_modal_ui", "teal") -filter_manager_modal_srv <- getFromNamespace("filter_manager_modal_srv", "teal") - -fd1 <- teal.slice::init_filtered_data(list(iris = list(dataset = iris))) -fd2 <- teal.slice::init_filtered_data( - list(iris = list(dataset = iris), mtcars = list(dataset = mtcars)) -) -fd3 <- teal.slice::init_filtered_data( - list(iris = list(dataset = iris), women = list(dataset = women)) -) -filter <- teal_slices( - teal.slice::teal_slice(dataname = "iris", varname = "Sepal.Length"), - teal.slice::teal_slice(dataname = "iris", varname = "Species"), - teal.slice::teal_slice(dataname = "mtcars", varname = "mpg"), - teal.slice::teal_slice(dataname = "women", varname = "height"), - mapping = list( - module2 = c("mtcars mpg"), - module3 = c("women height"), - global_filters = "iris Species" - ) -) - -ui <- fluidPage( - filter_manager_modal_ui("manager") -) - -server <- function(input, output, session) { - observe({ - filter_manager_modal_srv( - "manager", - filtered_data_list = list(module1 = fd1, module2 = fd2, module3 = fd3), - filter = filter - ) - }) -} - -if (interactive()) { - shinyApp(ui, server) -} - -
srv_nested_tabs
teal_modules also returns module active within self which is determined by the input$active_tab.
teal_modules
input$active_tab
# use non-exported function from teal -include_teal_css_js <- getFromNamespace("include_teal_css_js", "teal") -teal_data_to_filtered_data <- getFromNamespace("teal_data_to_filtered_data", "teal") -ui_nested_tabs <- getFromNamespace("ui_nested_tabs", "teal") -srv_nested_tabs <- getFromNamespace("srv_nested_tabs", "teal") - -# create `teal_data` -data <- teal_data(iris = iris, mtcars = mtcars) -datanames <- datanames(data) - -# creates a hierarchy of `teal_modules` from which a `teal` app can be created. -mods <- modules( - label = "d1", - modules( - label = "d2", - modules( - label = "d3", - example_module(label = "aaa1", datanames = datanames), - example_module(label = "aaa2", datanames = datanames) - ), - example_module(label = "bbb", datanames = datanames) - ), - example_module(label = "ccc", datanames = datanames) -) - -# creates nested list aligned with the module hierarchy created above, -# each leaf holding the same `FilteredData` object. -datasets <- teal_data_to_filtered_data(data) -datasets <- list( - "d2" = list( - "d3" = list( - "aaa1" = datasets, - "aaa2" = datasets - ), - "bbb" = datasets - ), - "ccc" = datasets -) - -ui <- function() { - tagList( - include_teal_css_js(), - textOutput("info"), - fluidPage( # needed for nice tabs - ui_nested_tabs("dummy", modules = mods, datasets = datasets) - ) - ) -} -server <- function(input, output, session) { - active_module <- srv_nested_tabs( - "dummy", - datasets = datasets, - modules = mods - ) - output$info <- renderText({ - paste0("The currently active tab name is ", active_module()$label) - }) -} -if (interactive()) { - shinyApp(ui, server) -} - -
# use non-exported function from teal -include_teal_css_js <- getFromNamespace("include_teal_css_js", "teal") -teal_data_to_filtered_data <- getFromNamespace("teal_data_to_filtered_data", "teal") -ui_tabs_with_filters <- getFromNamespace("ui_tabs_with_filters", "teal") -srv_tabs_with_filters <- getFromNamespace("srv_tabs_with_filters", "teal") - -# creates `teal_data` -data <- teal_data(iris = iris, mtcars = mtcars) -datanames <- datanames(data) - -# creates a hierarchy of `teal_modules` from which a `teal` app can be created. -mods <- modules( - label = "d1", - modules( - label = "d2", - modules( - label = "d3", - example_module(label = "aaa1", datanames = datanames), - example_module(label = "aaa2", datanames = datanames) - ), - example_module(label = "bbb", datanames = datanames) - ), - example_module(label = "ccc", datanames = datanames) -) - -# creates nested list aligned with the module hierarchy created above, -# each leaf holding the same `FilteredData` object. -datasets <- teal_data_to_filtered_data(data) -datasets <- list( - "d2" = list( - "d3" = list( - "aaa1" = datasets, - "aaa2" = datasets - ), - "bbb" = datasets - ), - "ccc" = datasets -) - -ui <- function() { - tagList( - include_teal_css_js(), - textOutput("info"), - fluidPage( # needed for nice tabs - ui_tabs_with_filters("dummy", modules = mods, datasets = datasets) - ) - ) -} -server <- function(input, output, session) { - output$info <- renderText({ - paste0("The currently active tab name is ", active_module()$label) - }) - active_module <- srv_tabs_with_filters(id = "dummy", datasets = datasets, modules = mods) -} - -if (interactive()) { - shinyApp(ui, server) -} -
It is written as a shiny module so it can be added into other apps as well.
shiny
# use non-exported function from teal -ui_teal <- getFromNamespace("ui_teal", "teal") -srv_teal <- getFromNamespace("srv_teal", "teal") - -mods <- modules( - label = "example app", - example_module(label = "example dataset", datanames = c("iris", "mtcars")) -) - -teal_data_rv <- reactive(teal_data(iris = iris, mtcars = mtcars)) - -ui <- function() { - ui_teal("dummy") -} - -server <- function(input, output, session) { - active_module <- srv_teal(id = "dummy", modules = mods, teal_data_rv = teal_data_rv) -} - -if (interactive()) { - shinyApp(ui, server) -} - -
# use non-exported function from teal -modules_depth <- getFromNamespace("modules_depth", "teal") - -mods <- modules( - label = "d1", - modules( - label = "d2", - modules( - label = "d3", - module(label = "aaa1"), module(label = "aaa2"), module(label = "aaa3") - ), - module(label = "bbb") - ), - module(label = "ccc") -) -#> module "aaa1" server function takes no data so "datanames" will be ignored -#> module "aaa2" server function takes no data so "datanames" will be ignored -#> module "aaa3" server function takes no data so "datanames" will be ignored -#> module "bbb" server function takes no data so "datanames" will be ignored -#> module "ccc" server function takes no data so "datanames" will be ignored -stopifnot(modules_depth(mods) == 3L) - -mods <- modules( - label = "a", - modules( - label = "b1", module(label = "c") - ), - module(label = "b2") -) -#> module "c" server function takes no data so "datanames" will be ignored -#> module "b2" server function takes no data so "datanames" will be ignored -stopifnot(modules_depth(mods) == 2L) -
teal_slices()
# use non-exported function from teal -slices_store <- getFromNamespace("slices_store", "teal") - -# Create a teal_slices object -tss <- teal_slices( - teal_slice(dataname = "data", varname = "var"), - teal_slice(dataname = "data", expr = "x > 0", id = "positive_x", title = "Positive x") -) - -slices_path <- tempfile(pattern = "teal_slices", fileext = ".json") -print(slices_path) -#> [1] "/tmp/Rtmp5ZjPWb/teal_slices3a462f4ff40.json" - -# Store the teal_slices object to a file -slices_store(tss, slices_path) - -# use non-exported function from teal -slices_restore <- getFromNamespace("slices_restore", "teal") - -# Restore a teal_slices object from a file -tss_restored <- slices_restore(slices_path) - -