gnu: r-bindr: Adjust for testthat compatibility.

* gnu/packages/cran.scm (r-bindr)[arguments]: Add phase
'testthat-compatibility.

Change-Id: I766680176275e31ef110150b270d29bec8ad8f22
This commit is contained in:
Ricardo Wurmus 2025-11-26 20:40:34 +01:00
parent 38894961c2
commit a4af63d388
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -16093,6 +16093,17 @@ functions subject to simple constraints.")
(base32
"16161y28wg40pwlvmildcgcwn5wx6hiyk8r79sd0r31w31h6q7sj"))))
(build-system r-build-system)
(arguments
(list
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'testthat-compatibility
(lambda _
;; This test uses the procedure "with_mock", which has been
;; removed from testthat.
(substitute* "tests/testthat/test-error.R"
((".*non-native encoding causes warning.*" m)
(string-append m "skip('skip');\n"))))))))
(native-inputs (list r-testthat))
(home-page "https://github.com/krlmlr/bindr")
(synopsis "Parametrized active bindings")