update lintr rule #522
Annotations
10 warnings
lintr:
R/geocodePL_get.R#L84
file=R/geocodePL_get.R,line=84,col=9,[if_not_else_linter] In a simple if/else statement, prefer `if (A) x else y` to the less-readable `if (!A) y else x`.
|
lintr:
R/models3D_download.R#L67
file=R/models3D_download.R,line=67,col=25,[redundant_equals_linter] Using == on a logical vector is redundant. Well-named logical vectors can be used directly in filtering. For data.table's `i` argument, wrap the column name in (), like `DT[(is_treatment)]`.
|
lintr:
R/pointDTM_get.R#L94
file=R/pointDTM_get.R,line=94,col=18,[paste_linter] Construct file paths with file.path(...) instead of paste0(x, "/", y, "/", z). Note that paste() converts empty inputs to "", whereas file.path() leaves it empty.
|
lintr:
R/pointDTM_get.R#L103
file=R/pointDTM_get.R,line=103,col=15,[scalar_in_linter] Use == to match length-1 scalars, not %in%. Note that == preserves NA where %in% does not.
|
lintr:
R/tile_download.R#L54
file=R/tile_download.R,line=54,col=18,[paste_linter] Construct file paths with file.path(...) instead of paste0(x, "/", y, "/", z). Note that paste() converts empty inputs to "", whereas file.path() leaves it empty.
|
lintr:
R/tile_download.R#L57
file=R/tile_download.R,line=57,col=16,[paste_linter] Construct file paths with file.path(...) instead of paste0(x, "/", y, "/", z). Note that paste() converts empty inputs to "", whereas file.path() leaves it empty.
|
lintr:
R/utils.R#L17
file=R/utils.R,line=17,col=17,[nonportable_path_linter] Use file.path() to construct portable file paths.
|
lintr:
tests/testthat/test-DEM_request.R#L8
file=tests/testthat/test-DEM_request.R,line=8,col=29,[nonportable_path_linter] Use file.path() to construct portable file paths.
|
lintr:
tests/testthat/test-DEM_request.R#L13
file=tests/testthat/test-DEM_request.R,line=13,col=5,[class_equals_linter] Instead of comparing class(x) with ==, use inherits(x, 'class-name') or is.<class> or is(x, 'class')
|
lintr:
tests/testthat/test-geocodePL_get.R#L22
file=tests/testthat/test-geocodePL_get.R,line=22,col=12,[nonportable_path_linter] Use file.path() to construct portable file paths.
|