From 1b358446678da36c093200087d5379f8ddf21e1a Mon Sep 17 00:00:00 2001 From: etiennebacher Date: Fri, 29 Nov 2024 20:42:43 +0100 Subject: [PATCH] lints --- R/data_rename.R | 2 +- tests/testthat/test-data_rename.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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`" ) })