Fix a couple of lints #521
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint:
R/cite_easystats.R#L86
file=R/cite_easystats.R,line=86,col=13,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE 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/cite_easystats.R#L90
file=R/cite_easystats.R,line=90,col=13,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE 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/cite_easystats.R#L98
file=R/cite_easystats.R,line=98,col=13,[nzchar_linter] Use nzchar(x) instead of x != "". Note that unlike nzchar(), NE 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/cite_easystats.R#L188
file=R/cite_easystats.R,line=188,col=18,[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/cite_easystats.R#L348
file=R/cite_easystats.R,line=348,col=58,[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/cite_easystats.R#L349
file=R/cite_easystats.R,line=349,col=49,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
|
Lint:
R/cite_easystats.R#L351
file=R/cite_easystats.R,line=351,col=21,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
|
Lint:
R/cite_easystats.R#L365
file=R/cite_easystats.R,line=365,col=48,[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/cite_easystats.R#L368
file=R/cite_easystats.R,line=368,col=7,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
|
Lint:
R/cite_easystats.R#L371
file=R/cite_easystats.R,line=371,col=21,[paste_linter] Use paste(), not paste0(), to collapse a character vector when sep= is not used.
|
Loading