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)) {