Rraw!() { /* proc-macro */ }
Expand description
Execute R code by parsing and evaluating tokens but without expanding parameters.
ⓘ
// c.f. https://dplyr.tidyverse.org/articles/programming.html
Rraw!(r#"
var_summary <- function(data, var) {
data %>%
summarise(n = n(), min = min({{ var }}), max = max({{ var }}))
}
"#)