Here is my customized function.
calc_x <- function(df, word, beta) {
df %>%
mutate(sql_text = map2_chr(
{{word}}, {{beta}},
~ paste(word, beta)
))
}
When I use the reformat code feature, the functon is reformatted in this way.
calc_x <- function(df, word, beta) {
df %>%
mutate(sql_text = map2_chr({
{
word
}
}, {
{
beta
}
},
~ paste(word, beta)))
}
How to maintain the {{}}
unchanged?