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>
This commit is contained in:
parent
af0aefd8c1
commit
41bc208e0c
@ -12575,6 +12575,12 @@ running IRkernel session.")
|
|||||||
"--name" "ir"
|
"--name" "ir"
|
||||||
"--prefix" out
|
"--prefix" out
|
||||||
(string-append out "/site-library/IRkernel/kernelspec"))
|
(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))))))
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("jupyter" ,jupyter)))
|
`(("jupyter" ,jupyter)))
|
||||||
@ -12584,6 +12590,8 @@ running IRkernel session.")
|
|||||||
("r-evaluate" ,r-evaluate)
|
("r-evaluate" ,r-evaluate)
|
||||||
("r-irdisplay" ,r-irdisplay)
|
("r-irdisplay" ,r-irdisplay)
|
||||||
("r-jsonlite" ,r-jsonlite)
|
("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-pbdzmq" ,r-pbdzmq)
|
||||||
("r-repr" ,r-repr)
|
("r-repr" ,r-repr)
|
||||||
("r-uuid" ,r-uuid)))
|
("r-uuid" ,r-uuid)))
|
||||||
|
Loading…
Reference in New Issue
Block a user