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