rlang
rlang copied to clipboard
Avoid repeated evaluations of dots in `list2()`
Linked to https://github.com/r-lib/rlang/issues/906 for !!!
arguments.
fn <- function(...) {
rlang::list2(...)
rlang::list2(...)
invisible()
}
fn(cat("hop\n"))
#> hop
#> hop