Skip to content

Column naming for empty string and duplicate NA label #1730

Column naming for empty string and duplicate NA label

Column naming for empty string and duplicate NA label #1730

Triggered via pull request February 4, 2025 13:14
Status Failure
Total duration 2m 46s
Artifacts

code-quality.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

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.