11---
22title : " Static Code Analysis for R"
3- date : " 2024-06-21 "
3+ date : " 2024-09-05 "
44tags : ["R", "linter", "tidyverse"]
55authors :
66 - name : Jim Hester
77 affiliation : 1
88 orcid : 0000-0002-2739-7082
99 - name : Florent Angly
10- affiliation : ~
11- orcid : ~
10+ affiliation : 6
11+ orcid : 0000-0002-8999-0738
1212 - name : Michael Chirico
1313 affiliation : 2
1414 orcid : 0000-0003-0787-087X
1515 - name : Russ Hyde
1616 affiliation : 5
1717 orcid : ~
1818 - name : Ren Kun
19- affiliation : ~
19+ affiliation : 7
2020 orcid : ~
2121 - name : Indrajeet Patil
2222 orcid : 0000-0003-1995-6531
@@ -35,6 +35,10 @@ affiliations:
3535 name : Preisenergie GmbH, Munich, Germany
3636 - index : 5
3737 name : Jumping Rivers
38+ - index : 6
39+ name : The University of Queensland
40+ - index : 7
41+ name : Unknown
3842output :
3943 md_document :
4044 variant : " markdown"
@@ -106,6 +110,7 @@ lint(
106110 text = " x >= 2.5" ,
107111 linters = redundant_ifelse_linter()
108112)
113+ # > ℹ No lints found.
109114```
110115
111116- ** Efficiency**
@@ -138,6 +143,7 @@ lint(
138143 text = " anyNA(x)" ,
139144 linters = any_is_na_linter()
140145)
146+ # > ℹ No lints found.
141147```
142148
143149- ** Readability**
@@ -170,6 +176,7 @@ lint(
170176 text = " x != 2" ,
171177 linters = comparison_negation_linter()
172178)
179+ # > ℹ No lints found.
173180```
174181
175182- ** Tidyverse style**
@@ -197,6 +204,7 @@ lint(
197204 text = " my_var <- 1L" ,
198205 linters = object_name_linter()
199206)
207+ # > ℹ No lints found.
200208```
201209
202210- ** Common mistakes**
@@ -247,9 +255,6 @@ l <- list(x = TRUE, x = FALSE)
247255l [" x" ]
248256# > $x
249257# > [1] TRUE
250- ```
251-
252- ``` r
253258l [names(l ) == " x" ]
254259# > $x
255260# > [1] TRUE
@@ -273,6 +278,7 @@ lint(
273278 text = " my.var <- 1L" ,
274279 linters = object_name_linter(styles = " dotted.case" )
275280)
281+ # > ℹ No lints found.
276282```
277283
278284- Create new linters (by leveraging functions like
0 commit comments