Skip to content

Preserve split slots in fix_dyncuts() for VarDynCutSplit - #1126

Open
chenyangsu wants to merge 1 commit into
pharmaverse:mainfrom
chenyangsu:1104_fix_dyncuts_slots@main
Open

chenyangsu wants to merge 1 commit into
pharmaverse:mainfrom
chenyangsu:1104_fix_dyncuts_slots@main

Conversation

@chenyangsu

Copy link
Copy Markdown

split_rows_by_cutfun() ignores child_labels, label_pos, parent_name, section_div, and summarize_row_groups() because fix_dyncuts() for VarDynCutSplit passes only 5 slots to make_static_cut_split(). In the #1104 reprex, child_labels = "hidden" and label_pos = "hidden" still render 5 rows instead of 2.

fix_dyncuts() now forwards all inherited Split slots from VarDynCutSplit into make_static_cut_split(), and split_cols_by_cuts() sets label_pos = "hidden" to match split_cols_by_cutfun() (?varcuts). Fixes #1104.

Testing: testthat::test_local(".", filter = "dyncuts|lyt-tabulation|nesting|printing|split_funs") passes (409 passed, 0 failed; all 5 assertions in test-dyncuts.R fail on main).

This branch has not been deployed

No deployments
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.

child_labels ignored by split_rows_by_cutfun()

1 participant