From 5782090374506f0dcd287db4fe9c82b7004f0b1b Mon Sep 17 00:00:00 2001 From: etiennebacher Date: Mon, 2 Dec 2024 10:59:57 +0100 Subject: [PATCH] fix --- R/data_rename.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/data_rename.R b/R/data_rename.R index 93d32d612..eb2415d67 100644 --- a/R/data_rename.R +++ b/R/data_rename.R @@ -94,7 +94,9 @@ data_rename <- function(data, # => do the switch manually if (!is.null(pattern)) { .is_deprecated("pattern", "select") - replacement <- select + if (!is.null(select)) { + replacement <- select + } select <- pattern } if (isFALSE(safe)) {