From 34f2a0b23cd47c54f5b0cb398b73f059771919a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul-Christian=20B=C3=BCrkner?= Date: Thu, 12 Sep 2024 13:01:49 +0200 Subject: [PATCH] fix issue #1648 --- R/misc.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/misc.R b/R/misc.R index f0060b9f8..fd0e34d94 100644 --- a/R/misc.R +++ b/R/misc.R @@ -615,7 +615,8 @@ rename <- function(x, pattern = NULL, replacement = NULL, dup <- duplicated(out) if (check_dup && any(dup)) { dup <- x[out %in% out[dup]] - stop2("Internal renaming led to duplicated names. \n", + stop2("Internal renaming led to duplicated names. ", + "Consider renaming your variables to have different suffixes.\n", "Occured for: ", collapse_comma(dup)) } out