Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 19, 2024
1 parent e1df39b commit 1dd2019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/analyze_variables.R
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ a_summary <- function(x,
.indent_mods <- get_indents_from_stats(.stats, .indent_mods)

# Check for custom labels from control_analyze_vars
if (is.character(x) || is.factor(x)){
if (is.character(x) || is.factor(x)) {
levels_per_stats <- lapply(x_stats, names)
} else {
levels_per_stats <- NULL
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-analyze_variables.R
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ testthat::test_that("analyze_vars works well with additional stat names (.stat_n
.stats = c("n", "mean", "count_fraction",
"a_zero" = function(x, ...) {
return(0)
}),
}
),
.stat_names_in = list("n" = "CoUnT", "v" = "something"),
.formats = c("mean" = "auto", "v" = "xx.xx"),
.labels = list("n" = "N=", "a" = "AAAA", "a_zero" = "A_ZERO"),
Expand All @@ -615,4 +616,3 @@ testthat::test_that("analyze_vars works well with additional stat names (.stat_n
c("VAR2", "a_zero", "A_ZERO", NA, 0)
)
})

0 comments on commit 1dd2019

Please sign in to comment.