From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53801) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifKmO-0000Pz-2q for guix-patches@gnu.org; Thu, 12 Dec 2019 04:29:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifKmN-0003FK-37 for guix-patches@gnu.org; Thu, 12 Dec 2019 04:29:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifKmM-0003ED-Lm for guix-patches@gnu.org; Thu, 12 Dec 2019 04:29:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ifKmM-0000mk-JR for guix-patches@gnu.org; Thu, 12 Dec 2019 04:29:02 -0500 Subject: [bug#38576] [PATCH] gnu: r-irkernel: Fix R kernel loading Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:51378) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifJAw-0005U2-7N for guix-patches@gnu.org; Thu, 12 Dec 2019 02:46:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifJAv-0002BO-5H for guix-patches@gnu.org; Thu, 12 Dec 2019 02:46:18 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:34461) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifJAu-00027q-OK for guix-patches@gnu.org; Thu, 12 Dec 2019 02:46:17 -0500 Received: by mail-wr1-x434.google.com with SMTP id t2so1610642wrr.1 for ; Wed, 11 Dec 2019 23:46:16 -0800 (PST) Received: from localhost (zpidlx9.uni-trier.de. [136.199.85.49]) by smtp.gmail.com with ESMTPSA id z21sm5189042wml.5.2019.12.11.23.46.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 23:46:14 -0800 (PST) Date: Thu, 12 Dec 2019 08:46:13 +0100 From: Lars-Dominik Braun Message-ID: <20191212074613.GA11713@zpidnp36> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38576@debbugs.gnu.org * gnu/packages/cran.scm (r-irkernel): Absolute path to R binary [propagated-inputs]: Generate proper search paths by adding r-minimal --- gnu/packages/cran.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 765747ea3b..c54a076014 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -12414,6 +12414,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))) @@ -12423,6 +12429,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))) -- 2.20.1