Skip to content
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

set_names conflict with magrittr #1091

Closed
clandinq opened this issue Jul 13, 2023 · 1 comment
Closed

set_names conflict with magrittr #1091

clandinq opened this issue Jul 13, 2023 · 1 comment

Comments

@clandinq
Copy link

I just updated to R 4.3.1 and updated all my packages to the latest version. I started receiving a warning from package conflicted warning about a function found in two packages: set_names is in magrittr and purrr. This is clearly a recent issue and will affect every user of tidyverse, since both packages are included there.

Here's a small example:

# Load packages
library(tidyverse)
library(conflicted)
df <- tibble(a = 1, b = 2)
df %<>% set_names(c("c", "d"))

Result:
Screen Shot 2023-07-13 at 11 10 06 AM

@hadley
Copy link
Member

hadley commented Jul 26, 2023

We don't generally recommend attaching magrittr, but if you do, you can use the suggested conflicted call.

@hadley hadley closed this as completed Jul 26, 2023
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

2 participants