Skip to content

Commit

Permalink
styler, lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 13, 2024
1 parent 7102682 commit 11036bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions R/select_nse.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,11 @@

# small helper, to avoid duplicated code
.action_if_not_found <- function(
x,
columns,
matches,
verbose,
ifnotfound
) {
x,
columns,
matches,
verbose,
ifnotfound) {
msg <- paste0(
"Following variable(s) were not found: ",
toString(x[is.na(matches)])
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-data_rename.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,5 @@ test_that("works with lists", {
)
new_names <- c("setosa, a", "versicolor, a")
out <- data_rename(result, select = names(result), replacement = new_names)
expect_identical(names(out), new_names)
expect_named(out, new_names)
})

0 comments on commit 11036bb

Please sign in to comment.