I don't think it's good practice to use magrittr pipes in the R code of a package. But I do use %>% and %<>% a few times in the R files, and it is not clear to me that they are clearer idiom than traditional assignment. In particular, keep() and discard() use pipes badly, IMO.
I don't think it's good practice to use magrittr pipes in the R code of a package. But I do use
%>%
and%<>%
a few times in the R files, and it is not clear to me that they are clearer idiom than traditional assignment. In particular,keep()
anddiscard()
use pipes badly, IMO.