guix_mirror_bot pushed a commit to branch r-team
in repository guix.
commit 759147996a311a937f79b70af5775ea9129d32a5
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu Mar 12 09:15:30 2026 +0100
gnu: r-pander: Be more explicit about disabling tests.
* gnu/packages/cran.scm (r-pander)[native-inputs]: Add r-descr,
r-microbenchmark, r-nlme, r-randomforest, r-rms, r-survival, r-tables, and
r-zoo.
[arguments]: Remove phase 'delete-bad-tests; replace it with TEST-DIRECTORY
and SKIPPED-TESTS arguments; add phase 'testthat-compatibility.
[properties]: Record more extra inputs.
Change-Id: I480b905df23420be6a3c9d9547ee43abcb9fec24
---
gnu/packages/cran.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 46 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index efd2252cd4..271ddda0ef 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -31978,22 +31978,61 @@ quick reporting.")
(base32
"1piad5aq9wjpss5diw89nwfgw8q833di22h26mpjh4h21jsfchc0"))))
(properties
- '((updater-extra-native-inputs . ("r-testthat"))))
+ '((updater-extra-native-inputs
+ . ("r-microbenchmark" "r-nlme" "r-randomforest" "r-rms"
+ "r-survival" "r-tables" "r-testthat" "r-zoo"))))
(build-system r-build-system)
(arguments
(list
+ #:test-directory "inst/tests"
+ #:skipped-tests
+ '(("test-helpers.R" "splitLine with hyphening behaves correctly")
+ ("test-S3.R"
+ "Date is preserved"
+ ;; A lot of tests only work with additional optional packages, so we
+ ;; just disable them here instead of tracking down every package the
+ ;; tests might need.
+
+ ;; 'length = 2' in coercion to 'logical(1)'
+ "no error: functions"
+ ;; could not find function "tableExpand_cpp"
+ "tableExpand behaves correctly"
+ ;; object 'sex' not found
+ "pander.survdiff works correctly"
+ ;; could not find function "stat.table"
+ "pander.stat.table works correctly"
+ ;; One space differs.
+ "pander.ts behaves correctly"
+ ;; could not find function "as.irts"
+ "pander.irts works correctly"
+ ;; length of 'dimnames' [2] not equal to array extent
+ "pander.lrm works correctly"
+ ;; could not find function "ets"
+ "pander.ets works correctly")
+ ("test-evals.R"
+ "Plot: lattice package"
+ "caching works correctly"))
#:phases
'(modify-phases %standard-phases
- (add-after 'unpack 'delete-bad-tests
+ ;; This deprecated procedure has been removed in testthat.
+ (add-after 'unpack 'testthat-compatibility
(lambda _
- ;; These tests fail in the C locale.
- (delete-file "inst/tests/test-helpers.R")
- (delete-file "inst/tests/test-S3.R")
- (delete-file "inst/tests/test-evals.R"))))))
+ (substitute* "inst/tests/test-S3.R"
+ (("is_true\\(\\)") "expect_true")))))))
(propagated-inputs
(list r-digest r-rcpp))
(native-inputs
- (list pandoc r-knitr r-testthat))
+ (list pandoc
+ r-descr
+ r-knitr
+ r-microbenchmark
+ r-nlme
+ r-randomforest
+ r-rms
+ r-survival
+ r-tables
+ r-testthat
+ r-zoo))
(home-page "https://rapporter.github.io/pander")
(synopsis "Render R objects into Pandoc's markdown")
(description