diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-11-26 18:36:42 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-12-03 16:59:51 +0100 |
commit | f73d165d7a73d308b211acb32de2c2dbcadbbc3d (patch) | |
tree | fc1b7afa6be2a160cd3d81e6c71cda1270e017c4 | |
parent | 82c028588d5186eb4c6727cffcbba39818e80fb3 (diff) | |
download | guix-f73d165d7a73d308b211acb32de2c2dbcadbbc3d.tar.gz guix-f73d165d7a73d308b211acb32de2c2dbcadbbc3d.zip |
gnu: r-janitor: Fix tests.
* gnu/packages/cran.scm (r-janitor)[native-inputs]: Add tzdata-for-tests.
[arguments]: Add phases 'set-timezone and 'delete-bad-tests.
Change-Id: Ibbea9ef585d6697e93c31d46b1ff7cc4e23e0e17
-rw-r--r-- | gnu/packages/cran.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 1b5f01cb0c..cddb899b03 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -40231,6 +40231,21 @@ and \"Persuasion\".") "1bmsyrmy833kzj3s9s6207f54bx1ca0ianwhiyrlp0jfbqcd1m99")))) (properties `((upstream-name . "janitor"))) (build-system r-build-system) + (arguments + (list + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'delete-bad-tests + (lambda _ + ;; Fails because of unexpected warnings. + (delete-file "tests/testthat/test-compare_df_cols.R"))) + (add-before 'check 'set-timezone + (lambda* (#:key inputs #:allow-other-keys) + ;; Six tests would fail without this. + (setenv "TZ" "UTC") + (setenv "TZDIR" + (search-input-directory inputs + "share/zoneinfo"))))))) (propagated-inputs (list r-dplyr r-hms @@ -40244,7 +40259,7 @@ and \"Persuasion\".") r-stringr r-tidyr r-tidyselect)) - (native-inputs (list r-knitr r-testthat)) + (native-inputs (list r-knitr r-testthat tzdata-for-tests)) (home-page "https://github.com/sfirke/janitor") (synopsis "Simple tools for examining and cleaning dirty data") (description |