quanteda / quanteda.textstats

Textual statistics for quanteda
GNU General Public License v3.0
14 stars 2 forks source link

check_win_oldrel() error #73

Closed kbenoit closed 5 months ago

kbenoit commented 5 months ago

At first I thought this was because of the

Imports:
    quanteda (>= 4.0.0),

in DESCRIPTION but it apparently builds quanteda 4.0 on the older release so it's not that. Which means: it might be a simpler fix. It's only on Windows, since on CI, ubuntu-latest (oldrel-1) is passing fine. See the compilation errors.

Dear package maintainer,

this notification has been generated automatically. Your package quanteda.textstats_0.97.tar.gz has been built (if working) and checked for Windows. Please check the log files and (if working) the binary package at: https://win-builder.r-project.org/PCOP6CHz3VOI The files will be removed after roughly 72 hours. Installation time in seconds: 36 Check time in seconds: 31 Status: 1 ERROR R version 4.2.3 (2023-03-15 ucrt)

All the best, Uwe Ligges (CRAN maintainer of binary packages for Windows)

From [00install.out](https://win-builder.r-project.org/PCOP6CHz3VOI/00install.out):

* installing *source* package 'quanteda.textstats' ...
** using staged installation
** libs
g++ -std=gnu++14  -I"D:/RCompile/recent/R-4.2.3/include" -DNDEBUG  -I'D:/RCompile/CRANpkg/lib/4.2/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include' -I'D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include'   -I"d:/rtools42/x86_64-w64-mingw32.static.posix/include"  -DARMA_64BIT_WORD=1 -DTBB   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++14  -I"D:/RCompile/recent/R-4.2.3/include" -DNDEBUG  -I'D:/RCompile/CRANpkg/lib/4.2/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include' -I'D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include'   -I"d:/rtools42/x86_64-w64-mingw32.static.posix/include"  -DARMA_64BIT_WORD=1 -DTBB   -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c collocations.cpp -o collocations.o
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h: In instantiation of 'tbb::interface5::concurrent_unordered_map<Key, T, Hasher, Key_equality, Allocator>::mapped_type& tbb::interface5::concurrent_unordered_map<Key, T, Hasher, Key_equality, Allocator>::operator[](const key_type&) [with Key = std::vector<unsigned int>; T = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >; Hasher = quanteda::hash_ngram; Key_equality = quanteda::equal_ngram; Allocator = tbb::tbb_allocator<std::pair<const std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > > >; tbb::interface5::concurrent_unordered_map<Key, T, Hasher, Key_equality, Allocator>::mapped_type = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >; tbb::interface5::concurrent_unordered_map<Key, T, Hasher, Key_equality, Allocator>::key_type = std::vector<unsigned int>]':
collocations.cpp:142:48:   required from here
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: error: no matching function for call to 'std::pair<std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::pair(const key_type&, tbb::interface5::concurrent_unordered_map<std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, quanteda::hash_ngram, quanteda::equal_ngram>::mapped_type)'
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:452:9: note: candidate: 'template<class ... _Args1, long long unsigned int ..._Indexes1, class ... _Args2, long long unsigned int ..._Indexes2> std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>) [with _Args1 = {_Args1 ...}; long long unsigned int ..._Indexes1 = {_Indexes1 ...}; _Args2 = {_Args2 ...}; long long unsigned int ..._Indexes2 = {_Indexes2 ...}; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  452 |         pair(tuple<_Args1...>&, tuple<_Args2...>&,
      |         ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:452:9: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   types 'std::tuple<_Tps ...>' and 'const key_type' {aka 'const std::vector<unsigned int>'} have incompatible cv-qualifiers
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:387:9: note: candidate: 'template<class ... _Args1, class ... _Args2> std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1 ...>, std::tuple<_Args2 ...>) [with _Args1 = {_Args1 ...}; _Args2 = {_Args2 ...}; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  387 |         pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>);
      |         ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:387:9: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   'std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >' is not derived from 'std::tuple<_Tps ...>'
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:381:21: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_MoveConstructiblePair<_U1, _U2>() && (! std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_ImplicitlyMoveConvertiblePair<_U1, _U2>())), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && (! std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>())), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  381 |  explicit constexpr pair(pair<_U1, _U2>&& __p)
      |                     ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:381:21: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   types 'std::pair<_T1, _T2>' and 'const key_type' {aka 'const std::vector<unsigned int>'} have incompatible cv-qualifiers
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:371:12: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  371 |  constexpr pair(pair<_U1, _U2>&& __p)
      |            ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:371:12: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   types 'std::pair<_T1, _T2>' and 'const key_type' {aka 'const std::vector<unsigned int>'} have incompatible cv-qualifiers
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:361:21: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(_MoveConstructiblePair<_U1, _U2>() && (! _ImplicitlyMoveConvertiblePair<_U1, _U2>())), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && (! std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>())), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  361 |  explicit constexpr pair(_U1&& __x, _U2&& __y)
      |                     ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:361:21: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:360:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  360 |                          bool>::type=false>
      |                                      ^~~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:352:12: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(_MoveConstructiblePair<_U1, _U2>() && _ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  352 |  constexpr pair(_U1&& __x, _U2&& __y)
      |            ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:352:12: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:351:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  351 |                          bool>::type=true>
      |                                      ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:343:17: note: candidate: 'template<class _U2, typename std::enable_if<_CopyMovePair<false, std::vector<unsigned int, std::allocator<unsigned int> >, _U2>(), bool>::type <anonymous> > std::pair<_T1, _T2>::pair(const _T1&, _U2&&) [with _U2 = _U2; typename std::enable_if<std::_PCC<true, _T1, _T2>::_CopyMovePair<false, _T1, _U2>(), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  343 |        explicit pair(const _T1& __x, _U2&& __y)
      |                 ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:343:17: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:342:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  342 |                          bool>::type=false>
      |                                      ^~~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:336:18: note: candidate: 'template<class _U2, typename std::enable_if<_CopyMovePair<true, std::vector<unsigned int, std::allocator<unsigned int> >, _U2>(), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(const _T1&, _U2&&) [with _U2 = _U2; typename std::enable_if<std::_PCC<true, _T1, _T2>::_CopyMovePair<true, _T1, _U2>(), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  336 |        constexpr pair(const _T1& __x, _U2&& __y)
      |                  ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:336:18: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:335:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  335 |                          bool>::type=true>
      |                                      ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:329:27: note: candidate: 'template<class _U1, typename std::enable_if<_MoveCopyPair<false, _U1, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >(), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(_U1&&, const _T2&) [with _U1 = _U1; typename std::enable_if<std::_PCC<true, _T1, _T2>::_MoveCopyPair<false, _U1, _T2>(), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  329 |        explicit constexpr pair(_U1&& __x, const _T2& __y)
      |                           ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:329:27: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:328:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  328 |                          bool>::type=false>
      |                                      ^~~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:322:18: note: candidate: 'template<class _U1, typename std::enable_if<_MoveCopyPair<true, _U1, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >(), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(_U1&&, const _T2&) [with _U1 = _U1; typename std::enable_if<std::_PCC<true, _T1, _T2>::_MoveCopyPair<true, _U1, _T2>(), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  322 |        constexpr pair(_U1&& __x, const _T2& __y)
      |                  ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:322:18: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:321:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  321 |                          bool>::type=true>
      |                                      ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:309:21: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_ConstructiblePair<_U1, _U2>() && (! std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_ImplicitlyConvertiblePair<_U1, _U2>())), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ConstructiblePair<_U1, _U2>() && (! std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>())), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  309 |  explicit constexpr pair(const pair<_U1, _U2>& __p)
      |                     ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:309:21: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   'const key_type' {aka 'const std::vector<unsigned int>'} is not derived from 'const std::pair<_T1, _T2>'
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:300:19: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_ConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<std::vector<unsigned int>, _U1>::value) || (! std::is_same<std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >, _U2>::value)), std::vector<unsigned int>, std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> > >::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  300 |         constexpr pair(const pair<_U1, _U2>& __p)
      |                   ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:300:19: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   'const key_type' {aka 'const std::vector<unsigned int>'} is not derived from 'const std::pair<_T1, _T2>'
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:276:26: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(_ConstructiblePair<_U1, _U2>() && (! _ImplicitlyConvertiblePair<_U1, _U2>())), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_ConstructiblePair<_U1, _U2>() && (! std::_PCC<true, _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>())), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  276 |       explicit constexpr pair(const _T1& __a, const _T2& __b)
      |                          ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:276:26: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:275:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  275 |                          bool>::type=false>
      |                                      ^~~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:266:17: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<(_ConstructiblePair<_U1, _U2>() && _ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _U1 = _U1; _U2 = _U2; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_ConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  266 |       constexpr pair(const _T1& __a, const _T2& __b)
      |                 ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:266:17: note:   template argument deduction/substitution failed:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:265:38: error: no type named 'type' in 'struct std::enable_if<false, bool>'
  265 |                          bool>::type=true>
      |                                      ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:245:26: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<std::__and_<std::is_default_constructible<_U1>, std::is_default_constructible<_U2>, std::__not_<std::__and_<std::__is_implicitly_default_constructible<_U1>, std::__is_implicitly_default_constructible<_U2> > > >::value, bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair() [with _U1 = _U1; _U2 = _U2; typename std::enable_if<std::__and_<std::is_default_constructible<_U1>, std::is_default_constructible<_U2>, std::__not_<std::__and_<std::__is_implicitly_default_constructible<_U1>, std::__is_implicitly_default_constructible<_U2> > > >::value, bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  245 |       explicit constexpr pair()
      |                          ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:245:26: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   candidate expects 0 arguments, 2 provided
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\unordered_map:43,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/platform/compiler.h:153,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/Rcpp/r/headers.h:62,
                 from D:/RCompile/CRANpkg/lib/4.2/Rcpp/include/RcppCommon.h:30,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25,
                 from D:/RCompile/CRANpkg/lib/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:8,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:232:26: note: candidate: 'template<class _U1, class _U2, typename std::enable_if<std::__and_<std::__is_implicitly_default_constructible<_U1>, std::__is_implicitly_default_constructible<_U2> >::value, bool>::type <anonymous> > constexpr std::pair<_T1, _T2>::pair() [with _U1 = _U1; _U2 = _U2; typename std::enable_if<std::__and_<std::__is_implicitly_default_constructible<_U1>, std::__is_implicitly_default_constructible<_U2> >::value, bool>::type <anonymous> = <anonymous>; _T1 = std::vector<unsigned int>; _T2 = std::pair<std::atomic<unsigned int>, std::atomic<unsigned int> >]'
  232 |       _GLIBCXX_CONSTEXPR pair()
      |                          ^~~~
d:\rtools42\x86_64-w64-mingw32.static.posix\lib\gcc\x86_64-w64-mingw32.static.posix\10.4.0\include\c++\bits\stl_pair.h:232:26: note:   template argument deduction/substitution failed:
In file included from d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\tbb.h:48,
                 from D:/RCompile/CRANguest/R-oldrelease/lib/quanteda/include/lib.h:15,
                 from collocations.cpp:1:
d:\rtools42\x86_64-w64-mingw32.static.posix\include\tbb\concurrent_unordered_map.h:163:33: note:   candidate expects 0 arguments, 2 provided
  163 |             where = insert(std::pair<key_type, mapped_type>(key, mapped_type())).first;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [D:/RCompile/recent/R-4.2.3/etc/x64/Makeconf:260: collocations.o] Error 1
ERROR: compilation failed for package 'quanteda.textstats'
* removing 'd:/RCompile/CRANguest/R-oldrelease/lib/quanteda.textstats'