Warning: SystemRequirements specified C++11: support has been removed * installing *source* package ‘simplextree’ ... ** this is package ‘simplextree’ version ‘1.0.1’ ** package ‘simplextree’ successfully unpacked and MD5 sums checked ** using staged installation ** libs specified C++11 using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.3.2)’ using SDK: ‘MacOSX26.2.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/cxx20/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from ./../inst/include/simplextree.h:22: ./../inst/include/utility/discrete.h:114:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 114 | const size_t a = floor(sqrt(2*x)); | ~ ^~~~~~~~~~~~~~~~ ./../inst/include/utility/discrete.h:115:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 115 | const size_t b = ceil(sqrt(2*x)+2); | ~ ^~~~~~~~~~~~~~~~~ In file included from RcppExports.cpp:4: In file included from ./../inst/include/simplextree.h:24: ./../inst/include/utility/delegate.hpp:113:57: error: no member named 'unique' in 'std::shared_ptr' 113 | if ((sizeof(functor_type) > store_size_) || !store_.unique()) | ~~~~~~ ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/simplextree.h:253: ./../inst/include/simplextree/st_filtration.hpp:224:24: warning: implicit conversion loses integer precision: 'typename iterator_traits<__wrap_iter>::difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 224 | tau.parent_idx = std::distance(begin(w_simplices), p_it); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./../inst/include/simplextree/st_filtration.hpp:317:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ~~~~~~~~~~^~~ ./../inst/include/simplextree/st_filtration.hpp:317:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:50: /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:192:81: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 192 | unary_call( Language call_, R_xlen_t index ) : call(call_), proxy(call_,index){} | ~~~~~ ^~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:209:101: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 209 | binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} | ~~~~~~ ^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/Language.h:209:123: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 209 | binary_call( Language call_, R_xlen_t index1, R_xlen_t index2 ) : call(call_), proxy1(call_,index1), proxy2(call_,index2){} | ~~~~~~ ^~~~~~ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/head.h:34:68: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 34 | Head( const VEC_TYPE& object_, R_xlen_t n_ ) : object(object_), n(n_) { | ~^~ In file included from RcppExports.cpp:4: In file included from ./../inst/include/simplextree.h:253: ./../inst/include/simplextree/st_filtration.hpp:317:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ~~~~~~~~~~^~~ ./../inst/include/simplextree/st_filtration.hpp:339:3: note: in instantiation of function template specialization 'Filtration::traverse_filtration<(lambda at ./../inst/include/simplextree/st_filtration.hpp:339:41)>' requested here 339 | traverse_filtration(c_idx, req_index, [this, is_increasing](const size_t i, it_t s, it_t e){ | ^ ./../inst/include/simplextree/st_filtration.hpp:317:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ^ 11 warnings and 1 error generated. make[1]: *** [RcppExports.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/cxx20/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c UnionFind.cpp -o UnionFind.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/cxx20/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c discreteR.cpp -o discreteR.o In file included from discreteR.cpp:4: ../inst/include/utility/discrete.h:114:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 114 | const size_t a = floor(sqrt(2*x)); | ~ ^~~~~~~~~~~~~~~~ ../inst/include/utility/discrete.h:115:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 115 | const size_t b = ceil(sqrt(2*x)+2); | ~ ^~~~~~~~~~~~~~~~~ discreteR.cpp:24:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 24 | sub.column(i++) = rr; | ~~~~~~ ~^~ discreteR.cpp:19:54: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | IntegerMatrix sub = Rcpp::no_init_matrix(k, numbers.size()); | ~~~~ ~~~~~~~~^~~~~~ discreteR.cpp:19:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 19 | IntegerMatrix sub = Rcpp::no_init_matrix(k, numbers.size()); | ~~~~ ^ discreteR.cpp:36:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 36 | result[i++] = cc; | ~ ^~ In file included from discreteR.cpp:4: ../inst/include/utility/discrete.h:204:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 204 | guess = pc - 1; | ~ ~~~^~~ discreteR.cpp:22:3: note: in instantiation of function template specialization 'to_subscript, (lambda at discreteR.cpp:22:64)>' requested here 22 | to_subscript(numbers_copy.begin(), numbers_copy.end(), n, k, [&](SmallVector< cc_int_t > cc){ | ^ 7 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/cxx20/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c nerve.cpp -o nerve.o In file included from nerve.cpp:5: In file included from ../inst/include/simplextree.h:22: ../inst/include/utility/discrete.h:114:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 114 | const size_t a = floor(sqrt(2*x)); | ~ ^~~~~~~~~~~~~~~~ ../inst/include/utility/discrete.h:115:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 115 | const size_t b = ceil(sqrt(2*x)+2); | ~ ^~~~~~~~~~~~~~~~~ In file included from nerve.cpp:5: In file included from ../inst/include/simplextree.h:24: ../inst/include/utility/delegate.hpp:113:57: error: no member named 'unique' in 'std::shared_ptr' 113 | if ((sizeof(functor_type) > store_size_) || !store_.unique()) | ~~~~~~ ^ In file included from nerve.cpp:5: In file included from ../inst/include/simplextree.h:253: ../inst/include/simplextree/st_filtration.hpp:224:24: warning: implicit conversion loses integer precision: 'typename iterator_traits<__wrap_iter>::difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 224 | tau.parent_idx = std::distance(begin(w_simplices), p_it); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/simplextree/st_filtration.hpp:317:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ~~~~~~~~~~^~~ ../inst/include/simplextree/st_filtration.hpp:317:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ^ ../inst/include/simplextree/st_filtration.hpp:317:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ~~~~~~~~~~^~~ ../inst/include/simplextree/st_filtration.hpp:339:3: note: in instantiation of function template specialization 'Filtration::traverse_filtration<(lambda at ../inst/include/simplextree/st_filtration.hpp:339:41)>' requested here 339 | traverse_filtration(c_idx, req_index, [this, is_increasing](const size_t i, it_t s, it_t e){ | ^ ../inst/include/simplextree/st_filtration.hpp:317:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ^ In file included from nerve.cpp:5: In file included from ../inst/include/simplextree.h:25: ../inst/include/utility/set_utilities.h:22:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 22 | if (remaining < size_t(n)) { n = remaining; } | ~ ^~~~~~~~~ ../inst/include/utility/set_utilities.h:166:35: note: in instantiation of function template specialization 'safe_advance, int>' requested here 166 | std::nth_element(rng.first, safe_advance(rng.first, rng.second, 1), rng.second); | ^ ../inst/include/utility/set_utilities.h:242:57: note: in instantiation of function template specialization 'n_intersects_unsorted>' requested here 242 | return is_sorted ? n_intersects_sorted(ranges, n) : n_intersects_unsorted(ranges, n); | ^ nerve.cpp:15:23: note: in instantiation of function template specialization 'n_intersects>' requested here 15 | bool is_connected = n_intersects(ranges, n); | ^ 8 warnings and 1 error generated. make[1]: *** [nerve.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/cxx20/include" -DNDEBUG -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c simplextree_module.cpp -o simplextree_module.o In file included from simplextree_module.cpp:5: In file included from ../inst/include/simplextree.h:22: ../inst/include/utility/discrete.h:114:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 114 | const size_t a = floor(sqrt(2*x)); | ~ ^~~~~~~~~~~~~~~~ ../inst/include/utility/discrete.h:115:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] 115 | const size_t b = ceil(sqrt(2*x)+2); | ~ ^~~~~~~~~~~~~~~~~ In file included from simplextree_module.cpp:5: In file included from ../inst/include/simplextree.h:24: ../inst/include/utility/delegate.hpp:113:57: error: no member named 'unique' in 'std::shared_ptr' 113 | if ((sizeof(functor_type) > store_size_) || !store_.unique()) | ~~~~~~ ^ In file included from simplextree_module.cpp:5: In file included from ../inst/include/simplextree.h:253: ../inst/include/simplextree/st_filtration.hpp:224:24: warning: implicit conversion loses integer precision: 'typename iterator_traits<__wrap_iter>::difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 224 | tau.parent_idx = std::distance(begin(w_simplices), p_it); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../inst/include/simplextree/st_filtration.hpp:317:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ~~~~~~~~~~^~~ ../inst/include/simplextree/st_filtration.hpp:317:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ^ simplextree_module.cpp:23:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 23 | IntegerMatrix::Column cc = m(_,i); | ~ ^ simplextree_module.cpp:49:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 49 | IntegerMatrix::ConstColumn cc = simplices(_,i); | ~~~~~~~~~ ^ simplextree_module.cpp:142:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 142 | res(i++, _) = IntegerVector(sigma.begin(), sigma.end()); | ~~~ ~^~ simplextree_module.cpp:137:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 137 | if (st->n_simplexes.size() <= k){ return IntegerMatrix(0, k+1); } | ~~~~~~~~~~~~~ ~^~ simplextree_module.cpp:138:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 138 | IntegerMatrix res = IntegerMatrix(st->n_simplexes.at(k), k+1); | ~~~~~~~~~~~~~ ~^~ simplextree_module.cpp:138:53: warning: implicit conversion loses integer precision: 'value_type' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 138 | IntegerMatrix res = IntegerMatrix(st->n_simplexes.at(k), k+1); | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~ simplextree_module.cpp:169:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'const int' [-Wshorten-64-to-32] 169 | IntegerMatrix res = IntegerMatrix(n, n); | ~~~~~~~~~~~~~ ^ simplextree_module.cpp:169:37: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'const int' [-Wshorten-64-to-32] 169 | IntegerMatrix res = IntegerMatrix(n, n); | ~~~~~~~~~~~~~ ^ simplextree_module.cpp:213:43: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'const int' [-Wshorten-64-to-32] 213 | IntegerMatrix tmp = IntegerMatrix(d,n); | ~~~~~~~~~~~~~ ^ simplextree_module.cpp:213:41: warning: implicit conversion loses integer precision: 'idx_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 213 | IntegerMatrix tmp = IntegerMatrix(d,n); | ~~~~~~~~~~~~~ ^ simplextree_module.cpp:216:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 216 | tmp(_, i) = col; | ~~~ ^ simplextree_module.cpp:404:17: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 404 | int nsize = x.size(); | ~~~~~ ~~^~~~~~ simplextree_module.cpp:405:17: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 405 | int msize = y.size(); | ~~~~~ ~~^~~~~~ In file included from simplextree_module.cpp:5: In file included from ../inst/include/simplextree.h:253: ../inst/include/simplextree/st_filtration.hpp:317:40: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ~~~~~~~~~~^~~ ../inst/include/simplextree/st_filtration.hpp:339:3: note: in instantiation of function template specialization 'Filtration::traverse_filtration<(lambda at ../inst/include/simplextree/st_filtration.hpp:339:41)>' requested here 339 | traverse_filtration(c_idx, req_index, [this, is_increasing](const size_t i, it_t s, it_t e){ | ^ ../inst/include/simplextree/st_filtration.hpp:317:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 317 | int i = a >= fc.size() ? fc.size() - 1 : a; // i possibly negative! | ~ ^ simplextree_module.cpp:23:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 23 | IntegerMatrix::Column cc = m(_,i); | ~ ^ simplextree_module.cpp:41:3: note: in instantiation of function template specialization 'vector_handler<(lambda at simplextree_module.cpp:41:21)>' requested here 41 | vector_handler(x, [&st_ref](simplex_t&& sigma){ st_ref.insert(sigma); }); | ^ simplextree_module.cpp:23:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 23 | IntegerMatrix::Column cc = m(_,i); | ~ ^ simplextree_module.cpp:104:3: note: in instantiation of function template specialization 'vector_handler<(lambda at simplextree_module.cpp:104:21)>' requested here 104 | vector_handler(x, [&st](simplex_t&& sigma){ | ^ simplextree_module.cpp:23:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 23 | IntegerMatrix::Column cc = m(_,i); | ~ ^ simplextree_module.cpp:111:3: note: in instantiation of function template specialization 'vector_handler<(lambda at simplextree_module.cpp:111:29)>' requested here 111 | vector_handler(simplices, [&st, &v](simplex_t&& sigma){ | ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 72 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~ ^ simplextree_module.cpp:142:17: note: in instantiation of function template specialization 'Rcpp::MatrixRow<13>::operator=<13, true, Rcpp::Vector<13>>' requested here 142 | res(i++, _) = IntegerVector(sigma.begin(), sigma.end()); | ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 73 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~ ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 74 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~ ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:16: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 75 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~ ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 79 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~ ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 81 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~ ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:18: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 83 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~ ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:356:36: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'const int' [-Wshorten-64-to-32] 356 | return cache.ref( offset(i,j) ) ; | ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:145:55: note: in instantiation of member function 'Rcpp::Vector<13>::operator()' requested here 145 | return static_cast< Vector* >( this )->operator()( i, j ) ; | ^ simplextree_module.cpp:179:11: note: in instantiation of member function 'Rcpp::Matrix<13>::at' requested here 179 | res.at(i, j) = res.at(j, i) = 1; | ^ In file included from simplextree_module.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:356:34: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'const int' [-Wshorten-64-to-32] 356 | return cache.ref( offset(i,j) ) ; | ~~~~~~ ^ 32 warnings and 1 error generated. make[1]: *** [simplextree_module.o] Error 1 make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘simplextree’ * removing ‘/Users/ripley/R/packages/tests-CXX20/simplextree.Rcheck/simplextree’