Unneeded concatenation linterSource:
Check that the
c() function is not used without arguments nor with a single constant.
FALSE, one-expression usages of
c()are always linted, e.g.
c(matrix(...)). In some such cases,
c()is being used for its side-effect of stripping non-name attributes; it is usually preferable to use
as.vector()to accomplish the same more readably.
linters for a complete list of linters available in lintr.