Skip to content

conflicts from user-defined functions #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
asadow opened this issue Mar 6, 2025 · 0 comments
Open

conflicts from user-defined functions #114

asadow opened this issue Mar 6, 2025 · 0 comments

Comments

@asadow
Copy link

asadow commented Mar 6, 2025

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    4

Created on 2025-03-06 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant