问题 The new curly curly method of tidy evaluation is explained in this article. Several examples are given demonstrating the use of this style of non-standard evaluation (NSE). library(tidyverse) # Example 1 -------------------------- max_by <- function(data, var, by) { data %>% group_by({{ by }}) %>% summarise(maximum = max({{ var }}, na.rm = TRUE)) } starwars %>% max_by(height) starwars %>% max_by(height, by = gender) # Example 2 -------------------------- summarise_by <- function(data, ..., by