diff --git a/R/data_rename.R b/R/data_rename.R index ffb29ccbc..622200c27 100644 --- a/R/data_rename.R +++ b/R/data_rename.R @@ -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 diff --git a/tests/testthat/test-data_rename.R b/tests/testthat/test-data_rename.R index 04cb4bd72..4681c9259 100644 --- a/tests/testthat/test-data_rename.R +++ b/tests/testthat/test-data_rename.R @@ -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`" ) })