You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unnecessary_concatenation_linter wrongly complains about usage with magrittr's assignment pipe operator %<>% #2008
x %<>% c(3) above is the magrittr way to write x <- c(x, 3), so lintr should ideally allow c() with a single constant if it is preceded by the %<>% operator.
Activity
MichaelChirico commentedon Jul 20, 2023
Thanks Salim. I'm not exactly sure how to proceed.
On the one hand, the assignment pipe is not allowed by the Tidyverse guide:
https://style.tidyverse.org/pipes.html#assignment-2
on the other hand, that's kind of independent of the concatenation linter.
Probably we should:
salim-b commentedon Jul 20, 2023
I know the TSG instructs to avoid this operator, but I still ike to use it. Thus I very much agree with your second action point.