Skip to content

JGQO-323-Added predefined user inputs to transformator#25

Merged
Pranith1785 merged 3 commits intomainfrom
feature/JGQO-323_merge_transformator
Mar 3, 2026
Merged

JGQO-323-Added predefined user inputs to transformator#25
Pranith1785 merged 3 commits intomainfrom
feature/JGQO-323_merge_transformator

Conversation

@Pranith1785
Copy link
Copy Markdown
Collaborator

Rewritten the entire transformator to handle the pre-defined user inputs and created a R6 class to handle the add, remove and Applying the changes to dataframe

Example code

app <- teal::init(
  data = teal.data::teal_data(IRIS = iris, code = "IRIS <- iris"),
  modules = teal::modules(
    teal::example_module(
      transformators = list(merge_levels_transformator(
        dataname = "IRIS",
        predefined = list(
          list("Species", "setosa", "SETOSA_WITHIN_FIX"),
          list("Petal.Width", c(0.2, 0.3, 0.5), 12)
        )
      ))
    )
  )
)
if (interactive()) {
  shiny::shinyApp(app$ui, app$server)
}

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 25, 2026

badge

Code Coverage Summary

Filename                                     Stmts    Miss  Cover    Missing
-----------------------------------------  -------  ------  -------  ---------
R/BlockConditions.R                             14      14  0.00%    23-54
R/create_rel_risk_transformator.R               43      43  0.00%    35-83
R/forest_plot_decorator.R                      164     164  0.00%    97-368
R/ggplot_decorator.R                           244     244  0.00%    81-352
R/merge_levels_transformator.R                 140     140  0.00%    10-227
R/or_filtering_transformator_view_model.R       27      27  0.00%    26-64
R/or_filtering_transformator.R                 254     254  0.00%    64-364
R/patchwork_plot_decorator.R                    46      46  0.00%    16-66
R/r_access_utilities.R                          45      45  0.00%    25-142
R/title_footer_decorator.R                     130     130  0.00%    98-236
TOTAL                                         1107    1107  0.00%

Diff against main

Filename                          Stmts    Miss  Cover
------------------------------  -------  ------  --------
R/merge_levels_transformator.R      -98     -98  +100.00%
TOTAL                               -98     -98  +100.00%

Results for commit: 8d7cf9f

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@aqlina aqlina self-requested a review February 25, 2026 09:35
@aqlina
Copy link
Copy Markdown
Collaborator

aqlina commented Feb 25, 2026

Predefined parameters are taken into account and seems to work fine
image

@Pranith1785 Pranith1785 merged commit 6b348c6 into main Mar 3, 2026
20 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants