From 892b86c4c1f7f2ce001b5b2ac2de1518f01e29ed Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Oct 2024 15:44:39 +0200 Subject: [PATCH] lintr, styler --- tests/testthat/test-renaming.R | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/testthat/test-renaming.R b/tests/testthat/test-renaming.R index 612c33a7..6cb7d79e 100644 --- a/tests/testthat/test-renaming.R +++ b/tests/testthat/test-renaming.R @@ -1,13 +1,11 @@ test_that("renaming columns", { # should warn the user - expect_warning( - { - out <- correlation(anscombe, - select = c("x1", "x2"), - rename = c("var1") - ) - } - ) + expect_warning({ + out <- correlation(anscombe, + select = c("x1", "x2"), + rename = "var1" + ) + }) expect_snapshot(print(out)) expect_snapshot(correlation(anscombe,