unnecessary_concatenation_linter
wrongly complains about usage with magrittr's assignment pipe operator %<>%
#2008
Labels
false-positive
code that shouldn't lint, but does
Consider the following reprex:
Created on 2023-07-20 with reprex v2.0.2
x %<>% c(3)
above is the magrittr way to writex <- c(x, 3)
, so lintr should ideally allowc()
with a single constant if it is preceded by the%<>%
operator.The text was updated successfully, but these errors were encountered: