Check that parentheses and square brackets do not have spaces directly inside them, i.e., directly following an opening delimiter or directly preceding a closing delimiter.
See also
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#parentheses