Skip to content

Commit

Permalink
Fix get_labels_from_stats test (#1272)
Browse files Browse the repository at this point in the history
Fixes #1271
  • Loading branch information
edelarua authored Jul 25, 2024
1 parent 8fe3dc4 commit cd2d3bf
Show file tree
Hide file tree
Showing 13 changed files with 320 additions and 321 deletions.
4 changes: 2 additions & 2 deletions R/utils_default_stats_formats_labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ tern_default_labels <- c(
#' @export
summary_formats <- function(type = "numeric", include_pval = FALSE) {
lifecycle::deprecate_warn(
"0.9.0.9.5.9005", "summary_formats()",
"0.9.5.9005", "summary_formats()",
details = 'Use get_formats_from_stats(get_stats("analyze_vars_numeric", add_pval = include_pval)) instead'
)
met_grp <- paste0(c("analyze_vars", type), collapse = "_")
Expand All @@ -537,7 +537,7 @@ summary_formats <- function(type = "numeric", include_pval = FALSE) {
#' @export
summary_labels <- function(type = "numeric", include_pval = FALSE) {
lifecycle::deprecate_warn(
"0.9.0.9.5.9005", "summary_formats()",
"0.9.5.9005", "summary_formats()",
details = 'Use get_labels_from_stats(get_stats("analyze_vars_numeric", add_pval = include_pval)) instead'
)
met_grp <- paste0(c("analyze_vars", type), collapse = "_")
Expand Down
411 changes: 205 additions & 206 deletions tests/testthat/_snaps/decorate_grob/deco_grob_text_wrap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions tests/testthat/_snaps/g_km/g_km_at_risk_title.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions tests/testthat/_snaps/g_km/g_km_ci_ribbon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions tests/testthat/_snaps/g_km/g_km_crop_ylim.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions tests/testthat/_snaps/g_km/g_km_crop_ylim_failure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions tests/testthat/_snaps/g_km/g_km_custom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cd2d3bf

Please sign in to comment.