Skip to content

conflicts from user-defined functions #114

Open
@asadow

Description

@asadow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions