Development for v6.2.0 #201
Annotations
4 warnings
lint:
R/D_swWeatherData.R#L50
file=R/D_swWeatherData.R,line=50,col=5,[strings_as_factors_linter] This code relies on the default value of stringsAsFactors, which changed in version R 4.0. Please supply an explicit value for stringsAsFactors for this code to work with versions of R both before and after this switch.
|
lint:
R/D_swWeatherData.R#L255
file=R/D_swWeatherData.R,line=255,col=7,[outer_negation_linter] !all(x) is better than any(!x). The former applies negation only once after aggregation instead of many times for each element of x.
|
lint:
R/D_swWeatherData.R#L260
file=R/D_swWeatherData.R,line=260,col=9,[unnecessary_nested_if_linter] Don't use nested `if` statements, where a single `if` with the combined conditional expression will do. For example, instead of `if (x) { if (y) { ... }}`, use `if (x && y) { ... }`.
|
lint:
R/D_swWeatherData.R#L357
file=R/D_swWeatherData.R,line=357,col=25,[unnecessary_lambda_linter] Pass validObject directly as a symbol to lapply() instead of wrapping it in an unnecessary anonymous function. For example, prefer lapply(DF, sum) to lapply(DF, function(x) sum(x)).
|