mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
gnu: r: Set default pager.
* gnu/packages/statistics.scm (r)[arguments]: Add phase "set-default-pager" to avoid "false" as a default pager.
This commit is contained in:
parent
28de8d258b
commit
f4f4ced8dc
1 changed files with 10 additions and 5 deletions
|
@ -58,11 +58,16 @@ (define-public r
|
||||||
(assoc-ref %outputs "out")
|
(assoc-ref %outputs "out")
|
||||||
"/lib/R/lib"))
|
"/lib/R/lib"))
|
||||||
#:phases
|
#:phases
|
||||||
(alist-cons-before
|
(modify-phases %standard-phases
|
||||||
|
(add-before
|
||||||
|
'configure 'set-default-pager
|
||||||
|
;; Set default pager to "cat", because otherwise it is "false",
|
||||||
|
;; making "help()" print nothing at all.
|
||||||
|
(lambda _ (setenv "PAGER" "cat") #t))
|
||||||
|
(add-before
|
||||||
'check 'set-timezone
|
'check 'set-timezone
|
||||||
;; Some tests require the timezone to be set.
|
;; Some tests require the timezone to be set.
|
||||||
(lambda _ (setenv "TZ" "UTC"))
|
(lambda _ (setenv "TZ" "UTC") #t)))
|
||||||
%standard-phases)
|
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
'("--with-blas"
|
'("--with-blas"
|
||||||
"--with-lapack"
|
"--with-lapack"
|
||||||
|
|
Loading…
Reference in a new issue