Software
Placeholder

conflicted

An alternative conflict resolution strategy for R

R

The conflicted package provides an alternative conflict resolution strategy for R. When multiple packages export functions with the same name, R’s default behavior uses the most recently loaded package, which can hide conflicts. conflicted changes this by making every conflict an error, forcing you to explicitly choose which function to use.

This approach helps prevent bugs caused by accidentally using the wrong function, particularly when package updates introduce new conflicts. You can resolve conflicts either by using explicit namespacing (like dplyr::filter()) or by declaring session-wide preferences with conflicts_prefer(). The package also provides tools to identify all conflicts in your current session through conflict_scout().

Contributors