You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default pattern for files to lint is `pattern = "(?i)[.](r|rmd|qmd|rnw|rhtml|rrst|rtex|rtxt)$"`, i.e. not `Rraw`. We don't need the other extensions, so trim them also for simplicity.
See:
https://lintr.r-lib.org/reference/lint.html
undesirable_operator_linter=Inf, # For ':::', possibly we could be more careful to only exclude ':::'.
115
+
# TODO(michaelchirico): Enforce these and re-activate them one-by-one.
116
+
comparison_negation_linter=Inf,
117
+
duplicate_argument_linter=Inf,
118
+
equals_na_linter=Inf,
119
+
paste_linter=Inf
109
120
))
110
121
)
111
-
})
122
+
}),
123
+
list(`../inst/tests/froll.Rraw`=list(dt_test_literal_linter=Inf)) # TODO(michaelchirico): Fix these once #5898, #5692, #5682, #5576, #5575, #5441 are merged.
Copy file name to clipboardExpand all lines: inst/tests/other.Rraw
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,13 @@ if (exists("test.data.table",.GlobalEnv,inherits=FALSE) ||
20
20
test = data.table:::test
21
21
INT = data.table:::INT
22
22
23
-
if (any(duplicated(pkgs))) stop("Packages defined to be loaded for integration tests in 'inst/tests/other.Rraw' contains duplicates.")
23
+
if (anyDuplicated(pkgs)) stop("Packages defined to be loaded for integration tests in 'inst/tests/other.Rraw' contains duplicates.")
24
24
25
25
f = function(pkg) suppressWarnings(suppressMessages(isTRUE(
26
26
library(pkg, character.only=TRUE, logical.return=TRUE, quietly=TRUE, warn.conflicts=FALSE, pos="package:base") # attach at the end for #5101
27
27
)))
28
28
loaded = sapply(pkgs, f)
29
-
if (any(!loaded)) {
29
+
if (!all(loaded)) {
30
30
stop("test.data.table('other.Rraw') is missing required package(s): ", toString(names(loaded)[!loaded]), ". If you can't install them and this is R CMD check, please set environment variable TEST_DATA_TABLE_WITH_OTHER_PACKAGES back to the default, false.")
31
31
# Would like to install them now for convenience but gitlab-ci.yml seems to install to bus/mirror-other-packages/cran.
32
32
# If that's a cache, that's nice, but we don't know at this point whether this script is being run by GLCI or by a user or in dev.
0 commit comments