Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Nov 29, 2024
1 parent 2b7d1cd commit 1b35844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/data_rename.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ data_rename <- function(data,
select <- pattern
}
if (isFALSE(safe)) {
insight::format_warning("In `data_rename()`, argument `safe` is no longer used and will be removed in a future release.")
insight::format_warning("In `data_rename()`, argument `safe` is no longer used and will be removed in a future release.") # nolint
}

# change all names if no pattern specified
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 @@ -68,7 +68,7 @@ test_that("data_rename errors when too many names in 'replacement'", {

test_that("data_rename works when not enough names in 'replacement'", {
expect_error(
x <- data_rename(test, replacement = paste0("foo", 1:2)),
data_rename(test, replacement = paste0("foo", 1:2)),
"There are more names in `select` than in `replacement`"
)
})
Expand Down

0 comments on commit 1b35844

Please sign in to comment.