R3.6に、BioconductorのscDDパッケージをインストールすると詰まったのでメモ。
こんなエラーがでる。
In file included from annoy.cpp:1:0:
annoy.h:33:63: error: wrong number of template arguments (4, should be 5)
typedef AnnoyIndex<Index_t, Data_t, Distance, Kiss64Random> _index;
^
In file included from annoy.h:17:0,
from annoy.cpp:1:
解決策としては、RcppAnnoyのバージョンを最新版の0.0.18ではなく、0.0.16をインストールすること。ここが参考になった。