title: How to print variable name from function argument using {{}} in R?
body: <p>I am new to R and trying to understand functional Programming and use of <code>{{}}</code>.</p>
  <p><strong>I am not able to figure out how to just <code>print</code> the name of <code>variable_name</code> from argument without <code>!!, enquos</code></strong></p>
  <p>I have tried below code but that doesn't work as expected:</p>
  <pre><code>summarise_min &lt;- function(data, var_min, var_group) {
  
    print({{var_min}})
    
    print(glue(&quot;test_{{var_min}}&quot;))
  
  }
  
  summarise_min(mtcars, mpg, cyl)
  </code></pre>
  <p>Have looked at some examples from : <a href="https://dplyr.tidyverse.org/articles/programming.html" rel="nofollow noreferrer">https://dplyr.tidyverse.org/articles/programming.html</a> but its implementation is mostly in <code>summarise / group</code> functions:</p>
  <pre><code>my_summarise5 &lt;- function(data, mean_var, sd_var) {
    data %&gt;% 
      summarise(
        &quot;mean_{{mean_var}}&quot; := mean({{ mean_var }}), 
        &quot;sd_{{sd_var}}&quot; := mean({{ sd_var }})
      )
  }
  my_summarise5(mtcars, mpg, cyl)
  </code></pre>
  <p>I am trying to avoid use of <code>!!, enquo, quo_name</code> as they are very confusing.</p>
  <p>Is there no way to work this out just by using <code>{{}}</code> and are they only limited to summarise functions?</p>