Discussion about this post

User's avatar
Jon Harmon's avatar

I've used it from time to time (both inside and outside of tidyverse contexts, recently via `rlang::inject()`), and I always feel like I probably *should* be using `do.call()`. If I'm using rlang for something else, are there performance considerations?

I found it easier to remember what !!! did once I started thinking of it as visually tying the input to ... (... with connectors coming off the top, basically). `!!!x` is roughly "dot-dot-dot-ize x" in my head now.

Expand full comment
Matt Brown's avatar

I've only used !!! in conjunction with syms() inside a function that uses tidy evaluation (i.e dplyr)

eg. f <- function(data, group_cols) { data %>% group_by(!!!syms(group_cols)) %>% ... }

where x is a character vector of 1 or more elements

I didn't know of any other uses until now. Very interesting.

Expand full comment
12 more comments...

No posts