guix_mirror_bot pushed a commit to branch r-team
in repository guix.

commit 9a40c5505ba34046c2b93bc033daa72a999f3a34
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Wed Feb 18 10:09:55 2026 +0100

    gnu: r-tailor: Replace custom phase with #:skipped-tests.
    
    * gnu/packages/cran.scm (r-tailor)[arguments]: Remove phase
    'skip-bad-tests; provide #:skipped-tests argument.
    
    Change-Id: Ie28578f001f94c32d74a98f0ce894b929f434fc3
---
 gnu/packages/cran.scm | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 338cb8c13a..20d4b91629 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -12594,20 +12594,17 @@ data types as well.")
     (build-system r-build-system)
     (arguments
      (list
-      #:phases
-      '(modify-phases %standard-phases
-         (add-after 'unpack 'skip-bad-tests
-           (lambda _
-             ;; These tests require the r-probably package, which we can't add
-             ;; to avoid a depedency cycle.
-             (substitute* "tests/testthat/test-utils.R"
-               ((".*tailor_fully_trained works.*" m)
-                (string-append m "skip('skip');\n")))
-             (substitute* "tests/testthat/test-extract.R"
-               ((".*extract single parameter from tailor.*" m)
-                (string-append m "skip('skip');\n"))
-               ((".*extract parameter set from tailor.*" m)
-                (string-append m "skip('skip');\n"))))))))
+      #:skipped-tests
+      ;; These tests require the r-probably package, which we can't add to
+      ;; avoid a dependency cycle.
+      '(("test-utils.R"
+         "tailor_fully_trained works")
+        ("test-extract.R"
+         "extract single parameter from tailor"
+         "extract parameter set from tailor with a tunable parameter"
+         "extract parameter set from tailor with multiple tunable parameters"
+         "extract single parameter from tailor with no tunable parameters"
+         "extract single parameter from tailor with tunable parameters"))))
     (propagated-inputs (list r-cli
                              r-dplyr
                              r-generics

Reply via email to