From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ra Subject: Re: [PATCH] gnu: r: Add which to propagated-inputs. Date: Tue, 24 Jan 2017 21:54:25 +0000 Message-ID: References: <20170123210113.43131-1-ilpuccio.febo@gmail.com> <87tw8o6ugm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11353c1e7b2b3e0546de293f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW934-0005QJ-17 for guix-devel@gnu.org; Tue, 24 Jan 2017 16:54:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cW932-0002kv-Vn for guix-devel@gnu.org; Tue, 24 Jan 2017 16:54:42 -0500 In-Reply-To: <87tw8o6ugm.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel@gnu.org --001a11353c1e7b2b3e0546de293f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, On Tue, Jan 24, 2017 at 10:04 PM Ludovic Court=C3=A8s wrote: Hi, Raoul Bonnal skribis: > From: Raoul Jean Pierre Bonnal > > * gnu/packages/statistics.scm (r)[propagated-inputs]: Add which. > --- > > Notes: > In my local installation of R > > Sys.which(c("bash")) > > was not working properly, inspecting the function(below) I had not installed which beforehand. > > Sys.which > function (names) > { > res <- character(length(names)) > names(res) <- names > which <- "/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which" This function contains the absolute file name of =E2=80=98which=E2=80=99, s= o everything should work? That is what I expected. The R function was not working till I explicitly installed the package 'which', maybe it was something strange on my side. Doing this (modifying the code to refer to external commands by absolute file names) is preferable over propagating inputs, because it avoids clobbering user profiles. Thanks. Ra --001a11353c1e7b2b3e0546de293f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Ludo,

On Tue, Jan 24, 2017 at 10:04 PM Ludovic Court= =C3=A8s <ludo@gnu.org> wrote:
Hi,

Raoul Bonnal <ilpuccio.febo@gmail.com> skribis:

> From: Raoul Jean Pierre Bonnal <ilpuccio.febo@gmail.com&g= t;
>
> * gnu/packages/statistics.scm (r)[propagated-inputs]: Add which.
> ---
>
> Notes:
>=C2=A0 =C2=A0 =C2=A0In my local installation of R
>
>=C2=A0 =C2=A0 =C2=A0Sys.which(c("bash"))
>
>=C2=A0 =C2=A0 =C2=A0was not working properly, inspecting the function(b= elow) I had not installed which beforehand.
>=C2=A0 =C2=A0 =C2=A0> Sys.which
>=C2=A0 =C2=A0 =C2=A0function (names)
>=C2=A0 =C2=A0 =C2=A0{
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0res <- character(length(names)) >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0names(res) <- names
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0which <- "/gnu/store/cn670s29= lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which"

This function contains the absolute file name of =E2=80=98which=E2=80=99, s= o everything
should work?
=C2=A0
That= is what I expected. The R function was not working till I explicitly insta= lled the package 'which', maybe it was something strange on my side= .


Doing this (modifying the code to refer to external commands by absolute file names) is preferable over propagating inputs, because it avoids
clobbering user profiles.

Thanks.
Ra=C2=A0


--001a11353c1e7b2b3e0546de293f--