guix_mirror_bot pushed a commit to branch r-team
in repository guix.
commit cef86f96623c352afaafb3945bebb52cd6afd516
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Wed Feb 18 17:14:31 2026 +0100
gnu: r-lintr: Replace custom phase with #:skipped-tests.
* gnu/packages/cran.scm (r-lintr)[arguments]: Remove phase
'disable-bad-tests; provide #:skipped-tests argument.
Change-Id: I3535002b9e3839b0dfaf6d41a9d7fb646f81c28b
---
gnu/packages/cran.scm | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 55b928bd60..139b35cc7a 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -40836,20 +40836,17 @@ provides tools to compute this metric.")
(build-system r-build-system)
(arguments
(list
+ #:skipped-tests
+ '(;; Two tests run code outside of testthat.
+ "test-fixed_regex_linter.R"
+ "test-pipe_continuation_linter.R"
+ ;; These tests fail because of unexpected successes, but it's not
+ ;; clear what the problems are.
+ ("test-expect_lint.R"
+ "single check"
+ "multiple checks"))
#:phases
'(modify-phases %standard-phases
- (add-after 'unpack 'disable-bad-tests
- (lambda _
- ;; Two tests run code outside of testthat.
- (delete-file "tests/testthat/test-fixed_regex_linter.R")
- (delete-file "tests/testthat/test-pipe_continuation_linter.R")
- ;; These tests fail because of unexpected successes, but it's not
- ;; clear what the problems are.
- (substitute* "tests/testthat/test-expect_lint.R"
- ((".*single check.*" m)
- (string-append m "skip('skip');\n"))
- ((".*multiple checks.*" m)
- (string-append m "skip('skip');\n")))))
;; Needed by tests.
(add-after 'unpack 'set-HOME
(lambda _ (setenv "HOME" "/tmp"))))))