From 172bb20e0129acd08229554f90ba3a257af0cc22 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Aug 2026 14:56:45 +0000 Subject: [PATCH 1/2] Initial plan From f9799f712520ab089feccd0865b7724cdfba1e61 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Aug 2026 14:58:40 +0000 Subject: [PATCH 2/2] feat: add broom.helpers to Imports and importFrom tidy_parameters (#312) Co-authored-by: shajoezhu <3692541+shajoezhu@users.noreply.github.com> --- DESCRIPTION | 2 +- NAMESPACE | 1 + NEWS.md | 2 ++ R/crane-package.R | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 81ab56e68..c6aed9a1b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -34,6 +34,7 @@ Depends: R (>= 4.2) Imports: broom (>= 1.0.8), + broom.helpers (>= 1.20.0), cards (>= 0.8.1.9001), cardx (>= 0.3.3), cli (>= 3.6.4), @@ -51,7 +52,6 @@ Imports: tibble, tidyr (>= 1.3.0) Suggests: - broom.helpers (>= 1.20.0), coin (>= 1.4.3), emmeans, labelled, diff --git a/NAMESPACE b/NAMESPACE index e6b4d4539..e1a81f26d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -79,6 +79,7 @@ import(ggplot2) import(glue) import(rlang) importFrom(broom,tidy) +importFrom(broom.helpers,tidy_parameters) importFrom(cards,ard_tabulate_value) importFrom(cowplot, draw_plot, diff --git a/NEWS.md b/NEWS.md index 99da4da78..46b6207ad 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # crane 0.3.3.9017 +* `broom.helpers` is moved from `Suggests` to `Imports`, and `broom.helpers::tidy_parameters` is now imported. (#312) + * `tbl_null_report()` now centers its message, so with no body content it reads as a "no data" panel spanning the table instead of text hugging the left edge. (#305) * `get_mmrm_results()` gains a `weights` argument (default `"equal"`) passed to `emmeans::emmeans()`, so proportionally weighted LS Means can be requested with `weights = "proportional"`. Check `?emmeans::emmeans()` for other `weights` options. (#299) diff --git a/R/crane-package.R b/R/crane-package.R index a318552b3..efb9cad13 100644 --- a/R/crane-package.R +++ b/R/crane-package.R @@ -3,6 +3,7 @@ #' @import ggplot2 #' @import glue glue #' @importFrom broom tidy +#' @importFrom broom.helpers tidy_parameters #' @importFrom cowplot plot_grid ggdraw draw_plot #' @importFrom dplyr across starts_with ends_with contains matches num_range #' @importFrom dplyr all_of any_of everything last_col where mutate