From c46c3dc8a91480f44d175c284f58c32b45f3b9b1 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Thu, 16 Jul 2026 19:24:28 +0800 Subject: [PATCH 1/4] add news entry --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index 14fd1b8cda..e249096fe7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -19,6 +19,7 @@ * In `estimate_proportion_diff` now also the standard error is available for selected methods in the `se_diff` statistic. * Exported `h_incidence_rate()` to allow to reuse the incidence rate estimation logic. * Exported `prop_chisq()`, `prop_cmh()`, `prop_fisher()`, and `prop_schouten()` for standalone proportion difference testing. +* Added `digits` argument to `h_tbl_median_surv()` and `control_surv_med_annot()` to control the `signif()` precision of the median survival time and confidence interval values annotated in `g_km()`. (#1469) ### Bug Fixes * Fixed bug in `prop_diff_cmh()` which previously failed when strata combinations had 0 observations. From 2479aa990c7d5fb6aa87033db238b861256e3a22 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Thu, 16 Jul 2026 19:25:46 +0800 Subject: [PATCH 2/4] change version to 0.9.11, [skip vbump] --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eda85ae860..4c3278ed14 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tern Title: Create Common TLGs Used in Clinical Trials -Version: 0.9.10.9021 +Version: 0.9.11 Date: 2026-07-15 Authors@R: c( person("Joe", "Zhu", , "joe.zhu@roche.com", role = c("aut", "cre"), diff --git a/NEWS.md b/NEWS.md index e249096fe7..8ce982ca34 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# tern 0.9.10.9021 +# tern 0.9.11 ### Enhancements * Added `factor_level_method` argument to `df_explicit_na()` to control factor level ordering From 823c493d8b1815ccacd3ae7ddcd0805631d29192 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Thu, 16 Jul 2026 14:20:54 +0000 Subject: [PATCH 3/4] update r build ignore --- .Rbuildignore | 1 + CRAN-SUBMISSION | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 CRAN-SUBMISSION diff --git a/.Rbuildignore b/.Rbuildignore index 7820a65660..c27865b0c0 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -39,3 +39,4 @@ pkgdown ^\.covrignore$ ^\.vscode$ ^[.]?air[.]toml$ +^CRAN-SUBMISSION$ diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION new file mode 100644 index 0000000000..1c853270b0 --- /dev/null +++ b/CRAN-SUBMISSION @@ -0,0 +1,3 @@ +Version: 0.9.11 +Date: 2026-07-16 14:19:26 UTC +SHA: 2479aa990c7d5fb6aa87033db238b861256e3a22 From 4a98ddafbbd217c762308b60334c819a72ab0009 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Thu, 16 Jul 2026 23:32:57 +0800 Subject: [PATCH 4/4] change function name --- tests/testthat/test-prop_diff.R | 2 +- tests/testthat/test-test_proportion_diff.R | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/testthat/test-prop_diff.R b/tests/testthat/test-prop_diff.R index a10311a8e5..d9c89f17ea 100644 --- a/tests/testthat/test-prop_diff.R +++ b/tests/testthat/test-prop_diff.R @@ -564,7 +564,7 @@ testthat::test_that("`estimate_proportion_diff` and strat_newcombe is compatible " 95% CI (Stratified Newcombe, without correction)", "B", "", "", "A", "25.39", "(3.47, 44.54)" ), - .Dim = c(3L, 3L) + dim = c(3L, 3L) ) # Values externally validated diff --git a/tests/testthat/test-test_proportion_diff.R b/tests/testthat/test-test_proportion_diff.R index ac9de82c53..83eb55961f 100644 --- a/tests/testthat/test-test_proportion_diff.R +++ b/tests/testthat/test-test_proportion_diff.R @@ -97,8 +97,8 @@ testthat::test_that("prop_cmh also works when there are strata with just one obs 0L, 0L, 0L, 1L, 0L, 21L, 18L, 3L, 4L, 79L, 16L, 30L, 9L, 1L, 0L, 13L, 4L ), - .Dim = c(2L, 2L, 7L), - .Dimnames = list( + dim = c(2L, 2L, 7L), + dimnames = list( grp = c("Placebo", "Treatment"), x = c("no", "yes"), strata = c("A", "B", "C", "D", "E", "F", "G") @@ -225,8 +225,8 @@ testthat::test_that("prop_cmh with Sato variance estimator works", { 2L, 7L, 17L, 13L, 4L, 5L, 13L, 12L ), - .Dim = c(2L, 2L, 4L), - .Dimnames = list( + dim = c(2L, 2L, 4L), + dimnames = list( grp = c("B", "A"), rsp = c("TRUE", "FALSE"), strata = c("S1", "S2", "S3", "S4") @@ -244,8 +244,8 @@ testthat::test_that("prop_cmh with Sato variance estimator works", { 2L, 10L, 17L, 10L, 4L, 5L, 13L, 12L ), - .Dim = c(2L, 2L, 4L), - .Dimnames = list( + dim = c(2L, 2L, 4L), + dimnames = list( grp = c("B", "A"), rsp = c("TRUE", "FALSE"), strata = c("S1", "S2", "S3", "S4") @@ -265,8 +265,8 @@ testthat::test_that("prop_cmh with Sato variance estimator and Wilson-Hilferty t 2L, 7L, 17L, 13L, 4L, 5L, 13L, 12L ), - .Dim = c(2L, 2L, 4L), - .Dimnames = list( + dim = c(2L, 2L, 4L), + dimnames = list( grp = c("B", "A"), rsp = c("TRUE", "FALSE"), strata = c("S1", "S2", "S3", "S4")