-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display output on tm_data_table, tm_variable_browser, tm_missing_data #829
base: main
Are you sure you want to change the base?
Conversation
@llrs-roche about transformators and datanames. Have you tried to unify names? |
@llrs-roche about this teal.modules.general::tm_data_table(
datanames = NULL,
variables_selected = list(IRIS = colnames(data$IRIS)[1:3], MTCARS = NULL)),
Assertion on 'variables_selected' failed: May only contain the following types: {character}, but element 2 has type 'NULL'. What you get if teal.modules.general::tm_data_table(
datanames = NULL,
variables_selected = list(IRIS = colnames(data$IRIS)[1:3], MTCARS = character(0)),
|
Or MTCARS = names(mtcars) |
If I use teal.modules.general::tm_data_table(
datanames = NULL,
variables_selected = list(IRIS = colnames(data$IRIS)[1:3], MTCARS = character(0)), I get:
But passing |
Unit Tests Summary 1 files 22 suites 12m 58s ⏱️ Results for commit 9e6e609. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 5195a4d ♻️ This comment has been updated with latest results. |
Pull Request
Fixes insightsengineering/teal#1452
This PR works on the edge cases of
datanames = "all"
andNULL
for each three modules, in addition I also revised the decision ontm_front_page
to show all modules by default, and reverted back to not showing the panels by default, as per previous behavior and @vedhav compelling comment.Code used to check this (besides the examples)
tm_data_table()
tm_variable_browser()
tm_missing_data()
1: No right-panel but the table uses all datasets that are data.frames. I was thinking if
variables_selected
names should be used whendatanames
is NULL ? So that something like this should only show IRIS dataset and no left panel.But this gets complicated if one wants to keep the standard 6 columns of the datasests as assertion fails:
2: No right-panel but all the datasets that are data.frames are shown.
I also tested whether transformators worked with
tm_missing_data
(the only one of these three modules with a transformator argument) because thedatanames
documentation implies it will be merged with it: currently it doesn't and I'm not sure how to fix it.If I create a transformator and use datanames not equal to all by default the new dataname won't be used.
I need to explore better the interaction between teal::module and the transformator.
reprex with transformators