aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <ldb@leibniz-psychology.org>2019-12-12 08:46:13 +0100
committerLudovic Courtès <ludo@gnu.org>2020-01-03 16:06:26 +0100
commit41bc208e0cc0e9eca63d7b2c00eef2b9068a28d1 (patch)
tree1c4b2d6e7725291b26acf93129190d6c772f00e5
parentaf0aefd8c10701fa32341506e36297e5105f6143 (diff)
downloadpatches-41bc208e0cc0e9eca63d7b2c00eef2b9068a28d1.tar
patches-41bc208e0cc0e9eca63d7b2c00eef2b9068a28d1.tar.gz
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>
-rw-r--r--gnu/packages/cran.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 2c43d3fc5f..8277026c32 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -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)))