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

Consider caching result of quasiquotation per argument #906

Open
lionel- opened this issue Jan 28, 2020 · 0 comments
Open

Consider caching result of quasiquotation per argument #906

lionel- opened this issue Jan 28, 2020 · 0 comments
Labels

Comments

@lionel-
Copy link
Member

lionel- commented Jan 28, 2020

To avoid repeated side effects when an argument is defused multiple times:

my_function <- function(data, what) {
  data %>% summarise("{{ what }}" := mean({{ what }}))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant