conflicted-package: conflicted: An Alternative Conflict Resolution Strategy

conflicted-packageR Documentation

conflicted: An Alternative Conflict Resolution Strategy

Description

R's default conflict management system gives the most recently loaded package precedence. This can make it hard to detect conflicts, particularly when they arise because a package update creates ambiguity that did not previously exist. 'conflicted' takes a different approach, making every conflict an error and forcing you to choose which function to use.

Resolving conflicts

To permanently resolve a conflict within a session, use conflict_prefer():

library(conflicted)
library(dplyr)

conflict_prefer("filter", "dplyr")

Author(s)

Maintainer: Hadley Wickham hadley@posit.co

Authors:

Other contributors:

  • Posit Software, PBC [copyright holder, funder]

See Also

Useful links:


conflicted documentation built on Dec. 1, 2026, 9:06 a.m.