How to write a function in R where one of the inputs is meant to go in quotation marks? (" ")

Let’s take this hypothetical code for instance: “`{r} dataset_custom <- function(top, dataset, variable) { {{dataset}} %>% count({{variable}}) %>% top_n(top, n) %>% arrange(-n) %>% left_join({{dataset}}, by = "{{variable}}") } “` I know this will return an error when I try to run (say) dataset_custom(5, dataset, variable) because of the by = "{{variable}}" in left_join. How do… Read More How to write a function in R where one of the inputs is meant to go in quotation marks? (" ")