[R] R unable to locate base unix commands (tar, sh etc)
pd@|gd @end|ng |rom gm@||@com
Fri Oct 18 02:13:14 CEST 2019
Semicolons in PATH on a Unix derivative like MacOS could well do that to you. It is not clear how they got there, but apparently not from your ~/.Environ file. However, multiple settings of the same PATH variable in .Environment is not something I'd think would work. Persumably the last setting wins, but I'm not sure of that.
> On 15 Oct 2019, at 15:09 , gordon beattie <gordo2b using hotmail.co.uk> wrote:
> Started having a problem installing packages where R can't find base unix commands. I've put an example below (other packages have identical "command not found" errors, sometimes with different commands e.g. sh) and my PATH/.Renviron(where the problem likely is). I'm on MacOS. Thanks in advance for any assistance!
>> install.packages("hdf5r", configure.args="--with-hdf5=/usr/local/Cellar/hdf5/1.10.5_1/bin/h5cc")
> trying URL 'https://www.stats.bris.ac.uk/R/bin/macosx/el-capitan/contrib/3.6/hdf5r_1.3.0.tgz'
> Content type 'application/x-gzip' length 4332333 bytes (4.1 MB)
> downloaded 4.1 MB
> sh: tar: command not found
> Error: file �/var/folders/ll/jmydhb6n7jqg5rv_c58jxkkh0000gn/T//RtmpnssBh2/downloaded_packages/hdf5r_1.3.0.tgz� is not a macOS binary package
> In addition: Warning messages:
> 1: In system(paste0("tar zxf \"", path.expand(what), "\" -C \"", path.expand(where), :
> error in running command
> 2: 'tar' returned non-zero exit code 127
>  "/bin;/usr/bin;/usr/local/bin"
> .Renviron (could anyone explain why "Sys.getenv" doesn't output the contents of Renviron, trying to understand how they link)
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Office: A 4.23
Email: pd.mes using cbs.dk Priv: PDalgd using gmail.com
More information about the R-help