by magrittr's pipe (%>%) this code works;
library(dplyr)
set.seed(1)
a <- sample(LETTERS[1:30],5)
a %>% gsub('A','-',x = .)
but in R's native pipe I can't pipe with dot, this one doesn't work;
set.seed(1)
a <- sample(LETTERS[1:30],5)
a |> gsub('A','-',x = .)
How can we pass non-first arguments by native R pipe ?