From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47057) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifNhL-00041k-G4 for guix-patches@gnu.org; Thu, 12 Dec 2019 07:36:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifNhK-0000rj-Ep for guix-patches@gnu.org; Thu, 12 Dec 2019 07:36:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifNhK-0000qv-3M for guix-patches@gnu.org; Thu, 12 Dec 2019 07:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ifNhJ-0000x5-UL for guix-patches@gnu.org; Thu, 12 Dec 2019 07:36:01 -0500 Subject: [bug#38576] [PATCH] gnu: r-irkernel: Fix R kernel loading Resent-Message-ID: Date: Thu, 12 Dec 2019 11:04:52 +0100 From: Lars-Dominik Braun Message-ID: <20191212100452.GE22717@zpidnp36> References: <20191212074613.GA11713@zpidnp36> <87wob13mpn.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87wob13mpn.fsf@elephly.net> 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: Ricardo Wurmus Cc: 38576@debbugs.gnu.org Hi Ricardo, > This part looks fine to me, though I wonder if that’s what users of this > package would expect. Is there an expectation that the effective R is > defined by the environment? Or would that not work anyway? it’s what python-ipykernel does – without explanation though. I’m not an R expert, so I’m unsure whether any R installation from the environment (which could be user-installed in $HOME) would be able to load this plugin or just the one it was “built” for. This change assumes the latter. > > > @@ -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))) > > This doesn’t look right to me. It seems wrong for any R package to > propagate R itself. The R_LIBS_SITE variable is “attached” to > “r-minimal”, so when that is installed R will find the r-irkernel > package. Am I missing something? If r-minimal is not installed, the kernel will simply not work and thus render this package useless. That’s why I would consider it a dependency. Cheers, Lars