Hi Ludo,

On Tue, Jan 24, 2017 at 10:04 PM Ludovic Courtès <[email protected]> wrote:

Hi,

Raoul Bonnal <[email protected]> skribis:

> From: Raoul Jean Pierre Bonnal <[email protected]>
>
> * 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 ‘which’, so 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

Reply via email to