As shown in the build, compiling data.table
package fails because of clang: error: unsupported option '-fopenmp'
That error message means the the compiler doesn’t support OpenMP.
As per https://github.com/Rdatatable/data.table/wiki/Installation#openmp-enabled-compiler-for-mac , you need to install clang
and libomp
from Homebrew and configure R build to use them.
Alternatively, you can install the package manually, forcing installation of an older binary version as per https://www.rdocumentation.org/packages/utils/versions/3.6.1/topics/install.packages#l_sections, before Travis’ stock logic gets to it – i.e. in before_install:
.
(Not sure if this will actually work. install.packages
called by the stock logic might try to overwrite the older version nevertheless.)
Thanks for your help. I don’t think it is a good idea to involve homebrew here just to install one package. Anyway, I found why it suddenly started failing, by comparing it to an earlier successful build. It turns out that data.table
was installed from binary, however, it was recently updated and the binary version is not yet available from CRAN (actually the osx build errored). It should resolve once the binary is build on CRAN.
I can see that from the travis report:
There are binary versions available but the source versions are later:
binary source needs_compilation
data.table 1.12.2 1.12.4 TRUE
The package’s documentation link above offers a way without using Homebrew, too.
Anyway, if you are okay waiting until a binary package is released, fine by me.