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

support bquote's .() and ..() everywhere in the nakedpipe #27

Open
moodymudskipper opened this issue Sep 14, 2020 · 0 comments
Open

support bquote's .() and ..() everywhere in the nakedpipe #27

moodymudskipper opened this issue Sep 14, 2020 · 0 comments

Comments

@moodymudskipper
Copy link
Owner

.() would be a bit like !! but work with base functions too.

substitution could be made upfront, or step by step so it can use temp variables (but I don't imagine use cases now where it would be useful).
Upfront is faster, and doesn't need to be dealt with in debugging pipe. Translations into magrittr won't look too good.

We might find some intersting uses for ..() :

my_expr <- expression(cyl == 4, head(2) ~ mpg)
mtcars %.% {
  ..(my_expr)
} 
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

1 participant