We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 329567c commit c9ce6edCopy full SHA for c9ce6ed
tools/lint/r/linter.R
@@ -8,6 +8,11 @@
8
#
9
# [1]: https://github.com/jimhester/lintr
10
11
+# Ensure that the `lintr` package is installed...
12
+if ( !require( "lintr", quietly = TRUE, character.only = TRUE ) ) {
13
+ install.packages( "lintr", repos = "http://lib.stat.cmu.edu/R/CRAN/" );
14
+}
15
+
16
# Get only the trailing command-line arguments:
17
args <- commandArgs( trailingOnly = TRUE );
18
@@ -16,6 +21,7 @@ n <- length( args );
21
if ( n == 0 ) {
22
stop( "Must provide at least one file to lint.", call. = FALSE );
23
}
24
19
25
# Specify which linters to use...
20
26
linters <- lintr::with_defaults( default = list(),
27
# Check that no absolute paths are used:
0 commit comments