Skip to content

Commit b44d776

Browse files
committed
run styler on files
1 parent dc505a4 commit b44d776

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

R/rename_ard_columns.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ rename_ard_columns <- function(x,
128128
across(
129129
all_of(all_new_names),
130130
~ map(., \(value){
131-
if (inherits(value, "factor")) value <- as.character(value)
132-
value %||% NA
133-
})|>
134-
unlist())
131+
if (inherits(value, "factor")) value <- as.character(value)
132+
value %||% NA
133+
}) |>
134+
unlist()
135+
)
135136
)
136137
}

tests/testthat/test-rename_ard_columns.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test_that("rename_ard_columns() preserves factor levels as characters", {
6666
by = TRT01A,
6767
variables = RACE
6868
) |>
69-
rename_ard_columns()
69+
rename_ard_columns()
7070

7171
# Check that 'race' is a character vector
7272
expect_type(res$RACE, "character")

0 commit comments

Comments
 (0)