-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I'm advising a reader to be wary of over-writing existing functions. I expected conflicted to act as a sort of pro-active solution, but I noticed that it only warns for conflicts between base R and packages. Would it be of interest to have it error for user-defined functions?
library(conflicted)
labels("test")
#> [1] "1"
labels <- function(x) names(x)
labels("test")
#> NULL
filter <- function(x) x[1,]
filter(mtcars)
#> mpg cyl disp hp drat wt qsec vs am gear carb
#> Mazda RX4 21 6 160 110 3.9 2.62 16.46 0 1 4 4Created on 2025-03-06 with reprex v2.1.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels