Repository navigation
Conversation
add_overall() on tbl_hierarchical_rate_by_grade tables now defaults to
"All Participants \n(N = {style_roche_number(N)})", as the other crane
add_overall() methods do, instead of the gtsummary default. Before, it
showed that label only under theme_gtsummary_roche().
add_grade_column() now keeps the overall column label set by
add_overall() instead of resetting it to "Overall". Unstratified tables
keep their current header.
The col_label docs of tbl_hierarchical_rate_and_count now show the real
default.
Contributor
Code Coverage SummaryDiff against mainResults for commit: da0af4c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Contributor
Unit Tests Summary 1 files 353 suites 2m 14s ⏱️ Results for commit da0af4c. ♻️ This comment has been updated with latest results. |
Contributor
Unit Test Performance DifferenceAdditional test case details
Results for commit 769a1cc ♻️ This comment has been updated with latest results. |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
add_overall()on atbl_hierarchical_rate_by_grade()table now labels the overall column"All Participants \n(N = {style_roche_number(N)})"by default, as the other craneadd_overall()methods do, instead of the gtsummary"**Overall**"default. (Not updated Overall label default value to All Participants as for other functions for tbl_hierarchical_rate_by_grade() #333)add_grade_column()now keeps the overall column label set byadd_overall(), instead of resetting it to"Overall". (Not updated Overall label default value to All Participants as for other functions for tbl_hierarchical_rate_by_grade() #333)add_overall.tbl_hierarchical_rate_by_grade()was a plain copy of gtsummary'sadd_overall.tbl_hierarchical(), so it kept the gtsummary default and showed "All Participants" only whentheme_gtsummary_roche()was set. It is now a small wrapper with the crane default, likeadd_overall.tbl_hierarchical_rate_and_count(), and it keeps thestatisticanddigitsarguments.add_grade_column()restyled every stat column header with"{level} \n(N = {n})", and{level}of the overall column is"Overall", so anycol_labelwas lost. It now leavesstat_0alone whenadd_overall()was called. Unstratified tables (by = NULL) andtbl_with_pools()tables keep the headers they have today; a test locks the unstratified case.The tests set
theme_gtsummary_roche()for the whole suite (setup-theme.R), which is why the existingadd_overall()test passed. The new test drops the theme for its duration.The
col_labeldocs oftbl_hierarchical_rate_and_count()now show its real default,"All Participants \n(N = {style_roche_number(N)})", instead of the gtsummary one they inherited (docs only, no NEWS entry).Reference GitHub issue associated with pull request. closes #333
Pre-review Checklist (if item does not apply, mark is as complete)
usethis::pr_merge_main()devtools::test_coverage()Reviewer Checklist (if item does not apply, mark is as complete)
pkgdown::build_site(). Check the R console for errors, and review the rendered website.devtools::test_coverage()When the branch is ready to be merged:
NEWS.mdwith the changes from this pull request under the heading "# cards (development version)". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.mdfor examples).