From 1479f53730fd847e41d1474128270452fe9c7167 Mon Sep 17 00:00:00 2001 From: AshesITR Date: Thu, 7 Sep 2023 19:32:43 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20r-lib/li?= =?UTF-8?q?ntr@68b82ce6832d7f6445beeb16c405b81c47b64e4c=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/articles/lintr.html | 6 +++--- dev/news/index.html | 2 ++ dev/pkgdown.yml | 2 +- dev/reference/equals_na_linter.html | 16 +++++++++++----- dev/reference/get_r_string.html | 4 ++-- dev/reference/get_source_expressions.html | 2 +- dev/reference/ids_with_token.html | 2 +- dev/reference/is_lint_level.html | 2 +- dev/reference/lint.html | 2 +- dev/reference/linters_with_defaults.html | 2 +- dev/reference/trailing_blank_lines_linter.html | 8 ++++---- dev/search.json | 2 +- 12 files changed, 29 insertions(+), 21 deletions(-) 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