rlang
rlang copied to clipboard
Consider caching result of quasiquotation per argument
To avoid repeated side effects when an argument is defused multiple times:
my_function <- function(data, what) {
data %>% summarise("{{ what }}" := mean({{ what }}))
}