guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/05: gnu: r-irkernel: Fix R kernel loading


From: guix-commits
Subject: 05/05: gnu: r-irkernel: Fix R kernel loading
Date: Fri, 3 Jan 2020 10:09:31 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 41bc208e0cc0e9eca63d7b2c00eef2b9068a28d1
Author: Lars-Dominik Braun <address@hidden>
Date:   Thu Dec 12 08:46:13 2019 +0100

    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 <address@hidden>
---
 gnu/packages/cran.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 2c43d3f..8277026 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]