diff --git a/dev/articles/lintr.html b/dev/articles/lintr.html index 76cbd7a54..1b2a66e80 100644 --- a/dev/articles/lintr.html +++ b/dev/articles/lintr.html @@ -620,15 +620,15 @@

Advanced: programmatic retri print(as.data.frame(lint(tmp, linters = eval(call(linter_name))))) }) #> filename line_number column_number type -#> 1 /tmp/Rtmp5n6i9U/file208e6c0f14dd 1 3 style +#> 1 /tmp/Rtmp3oaATg/file20c551e7f53e 1 3 style #> message line linter #> 1 Use <-, not =, for assignment. a = 1 get #> filename line_number column_number type -#> 1 /tmp/Rtmp5n6i9U/file208e6c0f14dd 1 3 style +#> 1 /tmp/Rtmp3oaATg/file20c551e7f53e 1 3 style #> message line linter #> 1 Use <-, not =, for assignment. a = 1 assignment_linter #> filename line_number column_number type -#> 1 /tmp/Rtmp5n6i9U/file208e6c0f14dd 1 3 style +#> 1 /tmp/Rtmp3oaATg/file20c551e7f53e 1 3 style #> message line linter #> 1 Use <-, not =, for assignment. a = 1 assignment_linter diff --git a/dev/news/index.html b/dev/news/index.html index 3baf1f9b4..45b12726b 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -112,6 +112,8 @@

New and improved features
  • function_argument_linter() detects usage of missing() for the linted argument (#1546, @MichaelChirico). The simplest fix for function_argument_linter() lints is typically to set that argument to NULL by default, in which case it’s usually preferable to update function logic checking missing() to check is.null() instead.
  • +equals_na_linter() checks for x %in% NA, which is a more convoluted form of is.na(x) (#2088, @MichaelChirico).
  • +
  • commas_linter() gains an option allow_trailing (default FALSE) to allow trailing commas while indexing. (#2104, @MEO265)
  • New linters

    diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index c7381e63a..b6b9c4885 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -6,7 +6,7 @@ articles: creating_linters: creating_linters.html editors: editors.html lintr: lintr.html -last_built: 2023-09-07T18:14Z +last_built: 2023-09-07T19:31Z urls: reference: https://lintr.r-lib.org/reference article: https://lintr.r-lib.org/articles diff --git a/dev/reference/equals_na_linter.html b/dev/reference/equals_na_linter.html index f50cedf84..c4a8cb361 100644 --- a/dev/reference/equals_na_linter.html +++ b/dev/reference/equals_na_linter.html @@ -1,6 +1,6 @@ -Equality check with NA linter — equals_na_linter • lintrEquality check with NA linter — equals_na_linter • lintr