Skip to content

update cloud - #22

Merged
NourEdinDarwish merged 5 commits into
cloudfrom
main
May 24, 2026
Merged

update cloud#22
NourEdinDarwish merged 5 commits into
cloudfrom
main

Conversation

@NourEdinDarwish

Copy link
Copy Markdown
Owner

No description provided.

- Add `pipeOverrideEstimateHeader()` to override estimate column headers
  while preserving theme-specific suffixes (e.g., from JAMA theme).
- Refactor `pipeCiMergeReg()` to construct the merged CI header label
  dynamically from existing formatted columns instead of hardcoding it.
- Replace inline header overrides in `tblRegLinearClass` and
  `tblUniRegLinearClass` with the new helper.
… CI abbreviation leak

- Force `conf.int` to FALSE in `buildMultiRegTable()` and `buildUniRegTable()` when the journal theme is set to "qjecon".
- This prevents gtsummary from generating unused `conf.low` and `conf.high` columns in the table body, avoiding stale "CI = Confidence Interval" footnotes when the columns are hidden by the theme.
- Update `buildSurvfitHeader()` in `survival.R` to construct the CI header dynamically using `gtsummary:::translate_string("CI")` instead of a hardcoded English string.
- Add `gtsummary::modify_abbreviation()` to the table pipeline in `tblsurvfit.b.R` to inject the translated "CI = Confidence Interval" source note globally into the table footer, ensuring the table matches `gtsummary`'s native localization behavior.
`gtsummary::style_number()` aggressively rounds numbers by default, which caused confidence levels with decimals (e.g., 95.5) to be incorrectly truncated or rounded to '96% CI' in the table headers. Bypassing `style_number()` and passing `confLevel` directly preserves the exact user-requested confidence level in survival tables.
@NourEdinDarwish
NourEdinDarwish merged commit dd9cde2 into cloud May 24, 2026
1 check 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.

1 participant