Skip to content

Commit

Permalink
fix issue #1648
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Sep 12, 2024
1 parent ab16c36 commit 34f2a0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34f2a0b

Please sign in to comment.