-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
featurea feature request or enhancementa feature request or enhancement
Description
Certain packages, like tidylog and wisegroup, are designed to mask multiple functions in another package. If these packages are used with conflicted, the user will have to include numerous calls to conflict_prefer() to avoid errors. An alternative is to provide a function, e.g. conflict_always_prefer(), that allows the user to prefer all functions exported from a package.
One way to implement this would be:
conflict_always_prefer <- function(winner, losers = NULL, quiet = FALSE) {
invisible(
lapply(getNamespaceExports(winner), conflict_prefer, winner, losers, quiet)
)
}
# For example
conflict_always_prefer(winner = "tidylog", losers = c("dplyr", "tidyr"))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement