tidyverse / magrittr

Improve the readability of R code with the pipe
https://magrittr.tidyverse.org
Other
957 stars 157 forks source link

Splicing the magrittr input #191

Closed lionel- closed 4 years ago

lionel- commented 5 years ago

!!!. should not be considered as a function call.

Current behaviour:

library("magrittr")

letters[1:3] %>% rlang::list2(!!!.)
#> [[1]]
#> [1] "a" "b" "c"
#>
#> [[2]]
#> [1] "a"
#>
#> [[3]]
#> [1] "b"
#>
#> [[4]]
#> [1] "c"

Expected behaviour:

letters[1:3] %>% rlang::list2(!!!.)
#> [[1]]
#> [1] "a"
#>
#> [[2]]
#> [1] "b"
#>
#> [[3]]
#> [1] "c"