Skip to content

tidyeval #14

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

Closed
lorenzwalthert opened this issue May 31, 2017 · 8 comments · Fixed by #148
Closed

tidyeval #14

lorenzwalthert opened this issue May 31, 2017 · 8 comments · Fixed by #148

Comments

@lorenzwalthert
Copy link
Collaborator

  • I was wondering how we aim to replace standard evaluation functions like select_(~xyz) with the upcoming release of dplyr 0.6.0 and associated. Is it via rlang .data$xzy, i.e. select(.data$xyz)? I think we should aim for consitency and change it in a single commit or PR.
  • In addition, I think we need to consider that not all packages from the tidyverse support tidyeval yet, e.g. see this PR for tidyr. I could not find out when that will be the case. Hence, the question is when the ideal point of transition is.

@krlmlr maybe you can advise on that.

@lorenzwalthert lorenzwalthert changed the title tidyveal tidyeval May 31, 2017
@krlmlr
Copy link
Member

krlmlr commented May 31, 2017

The select_() wrappers will remain compatible for some time, but we should definitely aim for replacement once dplyr 0.6.0 hits CRAN. We can use select(!!"xyz"), this is both safe and compatible to R CMD check.

@krlmlr
Copy link
Member

krlmlr commented May 31, 2017

As for tidyr, we can upgrade the tidyr calls one it's been updated to tidyeval, too.

@lorenzwalthert
Copy link
Collaborator Author

Ok, thanks. I guess it would be nice to have something like the roxygen2md package since a lot of code (in general) needs to be converted eventually but if you don't know of efforts towards that I will just do it manually, for styler it's not gonna be that much as you know.

@lorenzwalthert
Copy link
Collaborator Author

As tidyr seems to be ported to the tidyverse i.e this PR is closed, should we change our function calls to select(!!"xyz") or select(.data$xyz)? I think in the dplyr vignette, they advise .data$xyz, not sure why not !!"xyz"...

@lorenzwalthert
Copy link
Collaborator Author

Well anyways we probably want to wait until it is released on CRAN anyways...

@krlmlr
Copy link
Member

krlmlr commented Sep 18, 2018

tidyr with tidyeval should be on CRAN by now, let's take another look.

@lorenzwalthert
Copy link
Collaborator Author

lorenzwalthert commented Sep 23, 2018

Well we've not used tidyr directly because of the dplyr dependency. They were ported from tidyr to the file compat-tidyr. So not sure how to proceed.

@krlmlr
Copy link
Member

krlmlr commented Sep 24, 2018

Fine with the current state.

@krlmlr krlmlr closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants