Compilation problem installing R Packages

Hi,

I'm having issues installing many packages on R and RStudio independent of whether I use either. It seems to be a compilation problem but I'd appreciate any help anyone has in helping me resolve it. I'm a bit lost. I'm running MacOSX Mojave 10.14.6.

later_posix.cpp:195:13: warning: unused variable 'ret' [-Wunused-variable]
    ssize_t ret = write(dummy_pipe_in, "a", 1);
            ^
1 warning and 5 errors generated.
make: *** [later_posix.o] Error 1
ERROR: compilation failed for package ‘later’
* removing ‘/Users/andrew/Library/R/3.6/library/later’
Warning in install.packages :
  installation of package ‘later’ had non-zero exit status

Here is the error, which is exactly the same for each package that fails. I'm broadly trying to install 'tidyverse' but this is a more general issue. Here is my sessionInfo Output if it is helpful.

R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 
 
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3   

Thanks in advance,
Andrew

p.s. this is my first time using this community so feel free to recategorise as you see appropriate.

Hi, and welcome!

For future posts that, unlike this one, that innvolve coding questions, pease see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.

This happens a lot in MAC OS, because Apple has a non-standard compiler environment. It's possible to edit the source code to get around that, but very few people are up to it.

Instead, wait for the latest and greatest version to be compiled into binary form by Saint Simon Urbanek, of the R Core Development Team, who takes the brain damage for us all. It's ok to answer "Yes" to "do you want to compile from source," become it sometimes works. But if at first you don't succeed, give up.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.