trying URL 'https://cloud.r-project.org/src/contrib/nanotime_0.3.0.tar.gz'
Content type 'application/x-gzip' length 535610 bytes (523 KB)
==================================================
downloaded 523 KB
* installing *source* package ‘nanotime’ ...
** package ‘nanotime’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/travis/R/Library/Rcpp/include' -I'/Users/travis/R/Library/RcppCCTZ/include' -I'/Users/travis/R/Library/RcppDate/include' -I/usr/local/include -I../inst/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Users/travis/R/Library/Rcpp/include' -I'/Users/travis/R/Library/RcppCCTZ/include' -I'/Users/travis/R/Library/RcppDate/include' -I/usr/local/include -I../inst/include -fPIC -Wall -g -O2 -c duration.cpp -o duration.o
duration.cpp:96:7: error: no viable overloaded '-='
d -= ns * std::chrono::nanoseconds(1);
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-9.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/chrono:578:71: note: candidate function not viable: no known conversion from 'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...], ratio<[...], 1000000>>' for 1st argument
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX14 duration& operator-=(const duration& __d) {__rep_ -= __d.count(); return *this;}
^
1 error generated.
make: *** [duration.o] Error 1
ERROR: compilation failed for package ‘nanotime’
* removing ‘/Users/travis/R/Library/nanotime’
* restoring previous ‘/Users/travis/R/Library/nanotime’
Just seen this from Travis MacOS. (Travis Linux seems ok, and it's ok on Linux locally for me).
https://travis-ci.org/github/Rdatatable/data.table/jobs/715689511