* installing *source* package ‘netUtils’ ... ** this is package ‘netUtils’ version ‘0.8.3’ ** package ‘netUtils’ successfully unpacked and MD5 sums checked ** using staged installation ** libs 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/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/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 /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:39: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:207:30: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 207 | int nnz = rx.size(); | ~~~ ~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:89:29: note: in instantiation of member function 'Rcpp::traits::Exporter>::get' requested here 89 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 152 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:72:54: note: in instantiation of function template specialization 'Rcpp::as>' requested here 72 | ConstReferenceInputParameter(SEXP x_) : obj( as(x_) ){} | ^ RcppExports.cpp:67:64: note: in instantiation of member function 'Rcpp::ConstReferenceInputParameter>::ConstReferenceInputParameter' requested here 67 | Rcpp::traits::input_parameter< const arma::sp_mat& >::type A(ASEXP); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:39: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:252:30: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 252 | int nnz = rx.size(); | ~~~ ~~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:301:30: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 301 | int nnz = rx.size(); | ~~~ ~~~^~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:171: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:124:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 124 | res[i] = caster(start[i]) ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:130:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__impl, unsigned int>' requested here 130 | export_indexing__impl( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:153:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__dispatch, unsigned int>' requested here 153 | export_indexing__dispatch( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/Exporter.h:64:35: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing, unsigned int>' requested here 64 | ::Rcpp::internal::export_indexing( object, result ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:89:29: note: in instantiation of member function 'Rcpp::traits::IndexingExporter, unsigned int>::get' requested here 89 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 152 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:110:36: note: in instantiation of function template specialization 'Rcpp::as>' requested here 110 | arma::urowvec ti = as(li["i"]); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:89:29: note: in instantiation of member function 'Rcpp::traits::Exporter>::get' requested here 89 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 152 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:72:54: note: in instantiation of function template specialization 'Rcpp::as>' requested here 72 | ConstReferenceInputParameter(SEXP x_) : obj( as(x_) ){} | ^ RcppExports.cpp:67:64: note: in instantiation of member function 'Rcpp::ConstReferenceInputParameter>::ConstReferenceInputParameter' requested here 67 | Rcpp::traits::input_parameter< const arma::sp_mat& >::type A(ASEXP); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:171: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:112:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | res[i] = start[i] ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:130:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__impl, double>' requested here 130 | export_indexing__impl( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:153:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__dispatch, double>' requested here 153 | export_indexing__dispatch( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/Exporter.h:64:35: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing, double>' requested here 64 | ::Rcpp::internal::export_indexing( object, result ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:89:29: note: in instantiation of member function 'Rcpp::traits::IndexingExporter, double>::get' requested here 89 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 152 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/proxy.h:174:19: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all) 174 | return ::Rcpp::as( get() ) ; | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:112:35: note: in instantiation of function template specialization 'Rcpp::internal::generic_name_proxy<19>::operator Col>' requested here 112 | arma::Col tx = li["v"]; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:89:29: note: in instantiation of member function 'Rcpp::traits::Exporter>::get' requested here 89 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 152 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:72:54: note: in instantiation of function template specialization 'Rcpp::as>' requested here 72 | ConstReferenceInputParameter(SEXP x_) : obj( as(x_) ){} | ^ RcppExports.cpp:67:64: note: in instantiation of member function 'Rcpp::ConstReferenceInputParameter>::ConstReferenceInputParameter' requested here 67 | Rcpp::traits::input_parameter< const arma::sp_mat& >::type A(ASEXP); | ^ 7 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c lfr.cpp -o lfr.o In file included from lfr.cpp:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ lfr.cpp:92:6: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 92 | j=iy/R2_NDIV; | ~~~^~~~~~~~ lfr.cpp:195:6: warning: variable 'var' set but not used [-Wunused-but-set-variable] 195 | int var=0; | ^ lfr.cpp:252:53: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 252 | long unsigned int random_mate=irand(degrees.size()-1); | ~~~~~ ~~~~~~~~~~~~~~^~ lfr.cpp:254:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 254 | random_mate=irand(degrees.size()-1); | ~~~~~ ~~~~~~~~~~~~~~^~ lfr.cpp:257:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 257 | if (en[node_a].insert(random_mate).second) { | ~~~~~~ ^~~~~~~~~~~ lfr.cpp:265:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 265 | int old_node=out_nodes[irand(out_nodes.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~^~ lfr.cpp:268:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 268 | en[random_mate].insert(node_a); | ~~~~~~ ^~~~~~ lfr.cpp:269:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 269 | en[old_node].erase(node_a); | ~~~~~ ^~~~~~ lfr.cpp:278:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 278 | int node_h=not_common[irand(not_common.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:281:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 281 | en[node_h].erase(random_mate); | ~~~~~ ^~~~~~~~~~~ lfr.cpp:558:13: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 558 | int siz=sq.size(); | ~~~ ~~~^~~~~~ lfr.cpp:712:25: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 712 | int pos1=irand(s.size()-1); | ~~~~~ ~~~~~~~~^~ lfr.cpp:875:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 875 | number_of_triangles+=common_neighbors(i, *iti, en); | ~~~~~~~~~~~~~~~~ ^ lfr.cpp:901:42: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 901 | number_of_triangles+=common_neighbors(i, *iti, en); | ~~~~~~~~~~~~~~~~ ^ lfr.cpp:915:15: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 915 | cn_a_o=en[a].size(); | ~~~~~~~^~~~~~ lfr.cpp:947:32: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 947 | ccs.push_back(compute_cc(en, i)); | ~~~~~~~~~~ ^ lfr.cpp:970:38: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 970 | int random_node = irand(en.size()-1); | ~~~~~ ~~~~~~~~~^~ lfr.cpp:981:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 981 | int random_mate=not_ra[irand(not_ra.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~^~ lfr.cpp:1124:14: error: reference to 'integral' is ambiguous 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1108:8: note: candidate found by name lookup is 'integral' 1108 | double integral (double a, double b) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:30:9: note: candidate found by name lookup is 'std::integral' 30 | concept integral = is_integral_v<_Tp>; | ^ lfr.cpp:1124:14: error: reference to 'integral' is ambiguous 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1108:8: note: candidate found by name lookup is 'integral' 1108 | double integral (double a, double b) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:30:9: note: candidate found by name lookup is 'std::integral' 30 | concept integral = is_integral_v<_Tp>; | ^ lfr.cpp:1124:14: error: type name requires a specifier or qualifier 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1124:14: error: expected ')' lfr.cpp:1124:13: note: to match this '(' 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1124:61: error: reference to 'integral' is ambiguous 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1108:8: note: candidate found by name lookup is 'integral' 1108 | double integral (double a, double b) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:30:9: note: candidate found by name lookup is 'std::integral' 30 | concept integral = is_integral_v<_Tp>; | ^ lfr.cpp:1124:61: error: reference to 'integral' is ambiguous 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1108:8: note: candidate found by name lookup is 'integral' 1108 | double integral (double a, double b) { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__concepts/arithmetic.h:30:9: note: candidate found by name lookup is 'std::integral' 30 | concept integral = is_integral_v<_Tp>; | ^ lfr.cpp:1124:61: error: type name requires a specifier or qualifier 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1124:61: error: expected ')' lfr.cpp:1124:60: note: to match this '(' 1124 | return (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin)); | ^ lfr.cpp:1208:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 1208 | min1=i; | ~^ lfr.cpp:1215:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 1215 | min2=i; | ~^ lfr.cpp:1336:35: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 1336 | degree_list.push_back(kk); | ~~~~~~~~~ ^~ lfr.cpp:1343:61: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1343 | int random_mate=degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1352:59: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1352 | int old_node=external_nodes[irand(external_nodes.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1364:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1364 | int node_h=not_common[irand(not_common.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:1371:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 1371 | en_in[old_node].erase(node_a); | ~~~~~ ^~~~~~ lfr.cpp:1373:30: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 1373 | en_in[random_mate].insert(node_a); | ~~~~~~ ^~~~~~ lfr.cpp:1483:87: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 1483 | int nn=lower_bound(cumulative.begin(), cumulative.end(), ran4())-cumulative.begin()+nmin; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ lfr.cpp:1554:30: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1554 | for (int i=degree_seq.size()-1; i>=0; i--) { | ~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:1557:46: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1557 | int try_this = irand(available_nodes.size()-1); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1563:43: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1563 | try_this = irand(available_nodes.size()-1); | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1703:6: warning: variable 'var' set but not used [-Wunused-but-set-variable] 1703 | int var=0; | ^ lfr.cpp:1756:35: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 1756 | degree_list.push_back(kk); | ~~~~~~~~~ ^~ lfr.cpp:1765:69: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1765 | long unsigned int random_mate=degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1767:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1767 | random_mate=degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1770:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 1770 | if (en[node_a].insert(random_mate).second) { | ~~~~~~ ^~~~~~~~~~~ lfr.cpp:1777:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1777 | int old_node=out_nodes[irand(out_nodes.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~^~ lfr.cpp:1780:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 1780 | en[random_mate].insert(node_a); | ~~~~~~ ^~~~~~ lfr.cpp:1781:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 1781 | en[old_node].erase(node_a); | ~~~~~ ^~~~~~ lfr.cpp:1789:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1789 | int node_h=not_common[irand(not_common.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:1792:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 1792 | en[node_h].erase(random_mate); | ~~~~~ ^~~~~~~~~~~ lfr.cpp:1838:62: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1838 | int random_mate=nodes[degree_list[irand(degree_list.size()-1)]]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1840:59: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1840 | random_mate=nodes[degree_list[irand(degree_list.size()-1)]]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1851:51: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1851 | int node_h=not_common[irand(not_common.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:1899:27: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1899 | int num_nodes=degree_seq.size(); | ~~~~~~~~~ ~~~~~~~~~~~^~~~~~ lfr.cpp:1918:47: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 1918 | member_list[member_matrix[i][j]].push_back(i); | ~~~~~~~~~ ^ lfr.cpp:1930:76: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1930 | compute_internal_degree_per_node(internal_degree_seq[i], member_list[i].size(), liin); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~^~~~~~ lfr.cpp:1957:118: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 1957 | int right_index= lower_bound(member_list[member_matrix[i][j]].begin(), member_list[member_matrix[i][j]].end(), i) - member_list[member_matrix[i][j]].begin(); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfr.cpp:1985:68: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 1985 | int random_mate=member_matrix[i][irand(member_matrix[i].size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~ lfr.cpp:1987:104: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 1987 | int right_index= lower_bound(member_list[random_mate].begin(), member_list[random_mate].end(), i) - member_list[random_mate].begin(); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfr.cpp:2009:68: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2009 | int random_mate=member_matrix[i][irand(member_matrix[i].size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~ lfr.cpp:2011:104: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 2011 | int right_index= lower_bound(member_list[random_mate].begin(), member_list[random_mate].end(), i) - member_list[random_mate].begin(); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfr.cpp:2056:118: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 2056 | int right_index= lower_bound(member_list[member_matrix[i][j]].begin(), member_list[member_matrix[i][j]].end(), i) - member_list[member_matrix[i][j]].begin(); | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfr.cpp:2100:6: warning: variable 'var' set but not used [-Wunused-but-set-variable] 2100 | int var=0; | ^ lfr.cpp:2154:35: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2154 | degree_list.push_back(kk); | ~~~~~~~~~ ^~ lfr.cpp:2161:69: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2161 | long unsigned int random_mate=degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:2163:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2163 | random_mate=degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:2167:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2167 | if (en[node_a].insert(random_mate).second) { | ~~~~~~ ^~~~~~~~~~~ lfr.cpp:2175:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2175 | int old_node=out_nodes[irand(out_nodes.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~^~ lfr.cpp:2178:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2178 | en[random_mate].insert(node_a); | ~~~~~~ ^~~~~~ lfr.cpp:2179:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 2179 | en[old_node].erase(node_a); | ~~~~~ ^~~~~~ lfr.cpp:2187:49: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2187 | int node_h=not_common[irand(not_common.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:2190:21: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 2190 | en[node_h].erase(random_mate); | ~~~~~ ^~~~~~~~~~~ lfr.cpp:2208:140: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 2208 | for(long unsigned int i=0; i::iterator itss= en[i].begin(); itss!=en[i].end(); itss++) if(they_are_mate(i, *itss, member_list)) { | ~~~~~~~~~~~~~ ^ lfr.cpp:2228:138: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 2228 | for(long unsigned int a=0; a::iterator its= en[a].begin(); its!=en[a].end(); its++) if(they_are_mate(a, *its, member_list)) { | ~~~~~~~~~~~~~ ^ lfr.cpp:2239:74: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2239 | long unsigned int random_mate = degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:2241:56: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2241 | random_mate = degree_list[irand(degree_list.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~~^~ lfr.cpp:2244:69: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 2244 | if(!(they_are_mate(a, random_mate, member_list)) && (en[a].find(random_mate)==en[a].end())) { | ~~~~ ^~~~~~~~~~~ lfr.cpp:2244:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 2244 | if(!(they_are_mate(a, random_mate, member_list)) && (en[a].find(random_mate)==en[a].end())) { | ~~~~~~~~~~~~~ ^~~~~~~~~~~ lfr.cpp:2244:24: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 2244 | if(!(they_are_mate(a, random_mate, member_list)) && (en[a].find(random_mate)==en[a].end())) { | ~~~~~~~~~~~~~ ^ lfr.cpp:2253:52: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2253 | int node_h=not_common[irand(not_common.size()-1)]; | ~~~~~ ~~~~~~~~~~~~~~~~~^~ lfr.cpp:2257:30: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2257 | en[random_mate].insert(a); | ~~~~~~ ^ lfr.cpp:2259:24: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 2259 | en[node_h].erase(random_mate); | ~~~~~ ^~~~~~~~~~~ lfr.cpp:2260:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2260 | en[node_h].insert(b); | ~~~~~~ ^ lfr.cpp:2262:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 2262 | en[b].erase(a); | ~~~~~ ^ lfr.cpp:2265:20: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2265 | en[a].insert(random_mate); | ~~~~~~ ^~~~~~~~~~~ lfr.cpp:2266:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'const key_type' (aka 'const int') [-Wshorten-64-to-32] 2266 | en[a].erase(b); | ~~~~~ ^ lfr.cpp:2270:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 2270 | if(!they_are_mate(b, node_h, member_list)) | ~~~~~~~~~~~~~ ^ lfr.cpp:2274:24: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 2274 | if(they_are_mate(random_mate, node_h, member_list)) | ~~~~~~~~~~~~~ ^~~~~~~~~~~ lfr.cpp:2330:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'value_type' (aka 'int') [-Wshorten-64-to-32] 2330 | E[*its].insert(i); | ~~~~~~ ^ lfr.cpp:2366:29: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2366 | int num_nodes= member_list.size(); | ~~~~~~~~~ ~~~~~~~~~~~~^~~~~~ lfr.cpp:2395:45: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2395 | int random_mate=deqar[irand(deqar.size()-1)]; | ~~~~~ ~~~~~~~~~~~~^~ lfr.cpp:2604:86: warning: implicit conversion loses integer precision: 'difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 2604 | int nn=lower_bound(cumulative.begin(), cumulative.end(), ran4())-cumulative.begin()+min_degree; | ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 83 warnings and 8 errors generated. make[1]: *** [lfr.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c mse.cpp -o mse.o In file included from mse.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ mse.cpp:6:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 6 | int n=deg.size(); | ~ ~~~~^~~~~~ In file included from mse.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:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ mse.cpp:18:12: note: in instantiation of member function 'Rcpp::Matrix<13>::operator()' requested here 18 | dom(v,j)=1; | ^ In file included from mse.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:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ 4 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c triad_census_col.cpp -o triad_census_col.o In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ triad_census_col.cpp:50:61: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 50 | code = A(u,v)+2*A(u,w)+4*A(v,u)+8*A(v,w)+16*A(w,u)+32*A(w,v); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ triad_census_col.cpp:32:14: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 32 | int n=attr.size(); | ~ ~~~~~^~~~~~ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/operators.h:32: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/minus.h:286:16: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'STORAGE' (aka 'int') [-Wshorten-64-to-32] 286 | STORAGE x = lhs[i] ; | ~ ^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1082:32: note: in instantiation of member function 'Rcpp::sugar::Minus_Vector_Primitive<13, false, Rcpp::sugar::SeqLen>::operator[]' requested here 1082 | RCPP_LOOP_UNROLL(start,other) | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1068:9: note: in instantiation of function template specialization 'Rcpp::Vector<13>::import_expression>' requested here 1068 | import_expression( other.get_ref() , n ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:164:9: note: in instantiation of function template specialization 'Rcpp::Vector<13>::import_sugar_expression>' requested here 164 | import_sugar_expression( other, typename traits::same_type::type() ) ; | ^ triad_census_col.cpp:7:23: note: in instantiation of function template specialization 'Rcpp::Vector<13>::Vector>' requested here 7 | IntegerVector idx = seq_along(x) - 1; | ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:51:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 51 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1039:13: note: in instantiation of function template specialization 'Rcpp::Vector<13>::import_expression>' requested here 1039 | import_expression(x, n ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1051:9: note: in instantiation of function template specialization 'Rcpp::Vector<13>::assign_sugar_expression>' requested here 1051 | assign_sugar_expression( x.get_ref() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:245:9: note: in instantiation of function template specialization 'Rcpp::Vector<13>::assign_object>' requested here 245 | assign_object( x, typename traits::is_sugar_expression::type() ) ; | ^ triad_census_col.cpp:51:18: note: in instantiation of function template specialization 'Rcpp::Vector<13>::operator=>' requested here 51 | orbits = orbitClasses(code,_); | ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:52:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 52 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:53:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 53 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:54:28: note: expanded from macro 'RCPP_LOOP_UNROLL' 54 | TARGET[i] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:58:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 58 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:60:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 60 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from triad_census_col.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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:1082:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1082 | RCPP_LOOP_UNROLL(start,other) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:62:26: note: expanded from macro 'RCPP_LOOP_UNROLL' 62 | TARGET[i] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ 12 warnings generated. make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘netUtils’ * removing ‘/Users/ripley/R/packages/tests-devel/netUtils.Rcheck/netUtils’