Column naming for empty string and duplicate NA label #1730
Annotations
1 error and 3 warnings
lint-r
Process completed with exit code 31.
|
lint-r:
R/fcast.R#L133
file=R/fcast.R,line=133,col=11,[nzchar_linter] Use !nzchar(x) instead of x == "". Note that unlike nzchar(), EQ coerces to character, so you'll have to use as.character() if x is a factor. Whenever missing data is possible, please take care to use nzchar(., keepNA = TRUE); nzchar(NA) is TRUE by default.
|
lint-r:
R/fcast.R#L137
file=R/fcast.R,line=137,col=9,[any_duplicated_linter] anyDuplicated(x, ...) > 0 is better than any(duplicated(x), ...).
|
lint-r:
R/fcast.R#L261
file=R/fcast.R,line=261,col=2,[trailing_blank_lines_linter] Add a terminal newline.
|