-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1352 This PR enables including any data type in the `data` (`teal_data`) object. - unfilterable datasets (not data.frame nor MAE) are not included in the filter-panel, but they are preserved in the `data` - unsupported data types are displayed in the data-summary-table but they are hidden by default - if any unsupported dataset is in the data they data-summary displays "show/hide unsupported" to toggle rows containing unsupported - functions are excluded from a hash calculation and this code is not included in SRC <table> <thead> <th>hide unsupported</th> <th>show unsupported</th> </thead> <tbody> <tr> <td> <img width="362" alt="image" src="https://github.com/user-attachments/assets/46839bad-b193-4b24-a549-d9f99b0e6064"> </td> <td> <img width="370" alt="image" src="https://github.com/user-attachments/assets/270a077b-4175-4967-b6e4-026c8f9ac28c"> </td> </tr> </tbody> <table> <details> <summary>App example</summary> ```r devtools::load_all("teal.slice") devtools::load_all("teal") options("teal.bs_theme" = bslib::bs_theme(version = "5")) data <- teal_data() |> within({ library(MultiAssayExperiment) data(miniACC, envir = environment()) iris <- iris foo <- function(x) cat("hello\n") vector <- letters }) modules <- modules( example_module( transformers = teal_transform_module(server = function(id, data) { moduleServer(id, function(input, output, session) { reactive({ data() |> within({ foo2 <- function() NULL }) }) }) }) ), example_module(datanames = "iris") ) app <- init(data = data, modules = modules) runApp(app) ``` </details> --------- Signed-off-by: Vedha Viyash <[email protected]> Co-authored-by: Marcin <[email protected]> Co-authored-by: vedhav <[email protected]> Co-authored-by: Vedha Viyash <[email protected]>
- Loading branch information
1 parent
53c423d
commit daffef9
Showing
10 changed files
with
308 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.