From d1317bf7f4a0005d7d883a4bc5925123b27329b3 Mon Sep 17 00:00:00 2001 From: Davide Garolini Date: Thu, 5 Dec 2024 09:34:43 +0100 Subject: [PATCH 1/4] Update R/tt_as_df.R Co-authored-by: Emily de la Rua <59304861+edelarua@users.noreply.github.com> Signed-off-by: Davide Garolini --- R/tt_as_df.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tt_as_df.R b/R/tt_as_df.R index fcbb235a1..3a29fe99a 100644 --- a/R/tt_as_df.R +++ b/R/tt_as_df.R @@ -250,7 +250,7 @@ as_result_df <- function(tt, spec = NULL, stat_name <- lapply(seq_along(stat_name), function(sn_i) { stat_name[[sn_i]][seq_len(necessary_stat_lengths[sn_i])] }) - stat_name[sapply(stat_name, function(x) length(x) == 0)] <- NA + stat_name[!nzchar(stat_name)] <- NA # unnesting stat_name and stat tmp_ret_by_col_i <- NULL From 4ce30a9cd97b8629dc4568c1b3f4a08d18bc972d Mon Sep 17 00:00:00 2001 From: Davide Garolini Date: Thu, 5 Dec 2024 09:34:54 +0100 Subject: [PATCH 2/4] Update tests/testthat/test-result_data_frame.R Co-authored-by: Emily de la Rua <59304861+edelarua@users.noreply.github.com> Signed-off-by: Davide Garolini --- tests/testthat/test-result_data_frame.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-result_data_frame.R b/tests/testthat/test-result_data_frame.R index cf4177a60..1a4b53c90 100644 --- a/tests/testthat/test-result_data_frame.R +++ b/tests/testthat/test-result_data_frame.R @@ -239,7 +239,7 @@ test_that("as_result_df works fine with empty tables and no character(0) is allo ) }) -test_that("as_result_df works with only analyze tables (odd num of path elements)", { +test_that("as_result_df works with analyze-only tables (odd num of path elements)", { tbl <- basic_table() %>% analyze("cyl", table_names = "a") %>% analyze("mpg") %>% From 8c51a3de8b85066d9bc6be75d9c9cbb74967ff2f Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Fri, 6 Dec 2024 07:17:02 +0800 Subject: [PATCH 3/4] Update DESCRIPTION, broom 1.0.5 (#969) Signed-off-by: Joe Zhu --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 0d2024c69..f99a7eaa4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -40,7 +40,7 @@ Imports: stats, stringi (>= 1.6) Suggests: - broom (>= 1.0.6), + broom (>= 1.0.5), car (>= 3.0-13), dplyr (>= 1.0.5), knitr (>= 1.42), From 01e6adfebcec3c98298132e13cb9c5b7b966cafa Mon Sep 17 00:00:00 2001 From: shajoezhu Date: Thu, 5 Dec 2024 23:18:19 +0000 Subject: [PATCH 4/4] [skip actions] Bump version to 0.6.10.9009 --- DESCRIPTION | 4 ++-- NEWS.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f99a7eaa4..9984042b2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: rtables Title: Reporting Tables -Version: 0.6.10.9008 -Date: 2024-11-29 +Version: 0.6.10.9009 +Date: 2024-12-05 Authors@R: c( person("Gabriel", "Becker", , "gabembecker@gmail.com", role = "aut", comment = "Original creator of the package"), diff --git a/NEWS.md b/NEWS.md index 4eb5514c4..71e701ee5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -## rtables 0.6.10.9008 +## rtables 0.6.10.9009 ### New Features * Experimental pagination is now possible in `tt_as_flextable()` and `export_as_docx()`.