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

Replace tidyverse:: with package name #2

Open
gshotwell opened this issue Jun 21, 2018 · 1 comment
Open

Replace tidyverse:: with package name #2

gshotwell opened this issue Jun 21, 2018 · 1 comment

Comments

@gshotwell
Copy link

There was a recent post which warned people not to use the tidyverse package in package development, and I thought this might be a good opportunity to use a package to change tidyverse prefixes to the more limited package prefix. So the user could write:

mtcars %>%
    tidyverse::mutate(n = n()) %>%
    tidyverse::gather(...)

And get after running the script their code would change to:

mtcars %>%
    dplyr::mutate(n = n()) %>%
    tidyr::gather(...)

Anyway I just found out about this awesome package and thought this idea would fit well here, does it seem like a useful idea?

@pvictor
Copy link
Member

pvictor commented Jun 25, 2018

You're absolutely right, but tidyverse::mutate isn't a function, so prefixer won't propose to prefix mutate with tidyverse only with dplyr :)

Victor

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