Archived
1
0
Fork 0

gnu: r-with-tests: Update to 4.3.0.

* gnu/packages/statistics.scm (r-with-tests): Update to 4.3.0.
[arguments]: Move 'set-timezone before 'configure.
This commit is contained in:
Ricardo Wurmus 2023-04-28 13:35:45 +02:00
parent ec52655ce6
commit 921ee8789d
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -210,7 +210,7 @@ This package also provides @command{xls2csv} to export Excel files to CSV.")
(define r-with-tests (define r-with-tests
(package (package
(name "r-with-tests") (name "r-with-tests")
(version "4.2.3") (version "4.3.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://cran/src/base/R-" (uri (string-append "mirror://cran/src/base/R-"
@ -218,7 +218,7 @@ This package also provides @command{xls2csv} to export Excel files to CSV.")
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0x702sargcw27gy3nc0bwpfayi2lzak6c0ixq3i19qrvsjkakr2m")))) "02d6lrb0008wr9ikcas0h5xrk7i074ddwzzp4083czgjdj5w9p25"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:disallowed-references (,tzdata-for-tests) `(#:disallowed-references (,tzdata-for-tests)
@ -327,10 +327,11 @@ as.POSIXct(if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
;; Set default pager to "cat", because otherwise it is "false", ;; Set default pager to "cat", because otherwise it is "false",
;; making "help()" print nothing at all. ;; making "help()" print nothing at all.
(lambda _ (setenv "PAGER" "cat"))) (lambda _ (setenv "PAGER" "cat")))
(add-before 'check 'set-timezone (add-before 'configure 'set-timezone
;; Some tests require the timezone to be set. However, the ;; Some tests require the timezone to be set. However, the
;; timezone may not just be "UTC", or else a brittle regression ;; timezone may not just be "UTC", or else a brittle regression
;; test in reg-tests-1d will fail. ;; test in reg-tests-1d will fail.
;; We also need TZ during the configure step.
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(setenv "TZ" "UTC+1") (setenv "TZ" "UTC+1")
(setenv "TZDIR" (setenv "TZDIR"