me
/
guix
Archived
1
0
Fork 0

gnu: r-irkernel: Fix R kernel loading

* gnu/packages/cran.scm (r-irkernel): Absolute path to R binary
[propagated-inputs]: Generate proper search paths by adding r-minimal

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Lars-Dominik Braun 2019-12-12 08:46:13 +01:00 committed by Ludovic Courtès
parent af0aefd8c1
commit 41bc208e0c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 8 additions and 0 deletions

View File

@ -12575,6 +12575,12 @@ running IRkernel session.")
"--name" "ir"
"--prefix" out
(string-append out "/site-library/IRkernel/kernelspec"))
;; Record the absolute file name of the 'R' executable in
;; 'kernel.json'.
(substitute* (string-append out "/share/jupyter"
"/kernels/ir/kernel.json")
(("\\[\"R\",")
(string-append "[\"" (which "R") "\",")))
#t))))))
(inputs
`(("jupyter" ,jupyter)))
@ -12584,6 +12590,8 @@ running IRkernel session.")
("r-evaluate" ,r-evaluate)
("r-irdisplay" ,r-irdisplay)
("r-jsonlite" ,r-jsonlite)
;; sets R_LIBS_SITE, so R can actually find this package (IRkernel)
("r-minimal" ,r-minimal)
("r-pbdzmq" ,r-pbdzmq)
("r-repr" ,r-repr)
("r-uuid" ,r-uuid)))