* installing *source* package ‘binspp’ ... ** this is package ‘binspp’ version ‘0.2.0’ ** package ‘binspp’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.0.13.3)’ using C++17 using SDK: ‘MacOSX15.4.sdk’ clang++ -mmacos-version-min=15 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Binspp_core.cpp -o Binspp_core.o Binspp_core.cpp:83:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 83 | p1int = round(p1); | ~ ^~~~~~~~~ Binspp_core.cpp:84:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 84 | p2int = round(p2); | ~ ^~~~~~~~~ Binspp_core.cpp:86:21: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 86 | p1int = 2.0 * round(0.5 * p1); | ~ ~~~~^~~~~~~~~~~~~~~~~ Binspp_core.cpp:89:21: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 89 | p2int = 2.0 * round(0.5 * p2); | ~ ~~~~^~~~~~~~~~~~~~~~~ Binspp_core.cpp:386:13: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 386 | int res = floor(R::runif(min,max+1)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 ) ) ; | ~~~~~~ ^ Binspp_core.cpp:92:12: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 92 | w = v(p1int, p2int); | ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 ) ) ; | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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:1070:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_expression>' requested here 1070 | 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<14>::import_sugar_expression>' requested here 164 | import_sugar_expression( other, typename traits::same_type::type() ) ; | ^ Binspp_core.cpp:109:50: note: in instantiation of function template specialization 'Rcpp::Vector<14>::Vector>' requested here 109 | auxAlpha(i) = aozC(z_alpha, alpha, alphabet, CC(i,_)); | ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 */ \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:141:83: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 141 | return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ Binspp_core.cpp:117:28: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 117 | auxDist2 = (CC(_,0) - Y(i,0)) * (CC(_,0) - Y(i,0)) + (CC(_,1) - Y(i,1)) * (CC(_,1) - Y(i,1)); | ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:141:80: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 141 | return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:262:15: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 262 | return lhs[i] - rhs ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/times.h:71:11: note: in instantiation of member function 'Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>::operator[]' requested here 71 | return lhs[i] * rhs[i]; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/plus.h:72:11: note: in instantiation of member function 'Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>::operator[]' requested here 72 | return lhs[i] + rhs[i] ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:32: note: in instantiation of member function 'Rcpp::sugar::Plus_Vector_Vector<14, true, Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>, true, Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>>::operator[]' requested here 1084 | RCPP_LOOP_UNROLL(start,other) | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1041:13: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_expression>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>, true, Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>>>' requested here 1041 | import_expression(x, n ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1053:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::assign_sugar_expression>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>, true, Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>>>' requested here 1053 | assign_sugar_expression( x.get_ref() ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:247:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::assign_object>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>, true, Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>>>' requested here 247 | assign_object( x, typename traits::is_sugar_expression::type() ) ; | ^ Binspp_core.cpp:117:14: note: in instantiation of function template specialization 'Rcpp::Vector<14>::operator=>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>, true, Rcpp::sugar::Times_Vector_Vector<14, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>, true, Rcpp::sugar::Minus_Vector_Primitive<14, true, Rcpp::ConstMatrixColumn<14>>>>>' requested here 117 | auxDist2 = (CC(_,0) - Y(i,0)) * (CC(_,0) - Y(i,0)) + (CC(_,1) - Y(i,1)) * (CC(_,1) - Y(i,1)); | ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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++ ; \ | ~~~ ^ Binspp_core.cpp:376:49: note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::ConstMatrixRow<14>>' requested here 376 | for (int i = 0; i < x.nrow(); i++) {x2.row(i) = x.row(i);} | ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 72 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 73 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 74 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 75 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 79 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 81 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 83 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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++ ; \ | ~~~ ^ Binspp_core.cpp:377:20: note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::Vector<14>>' requested here 377 | x2.row(x.nrow()) = extraRow; | ^ In file included from Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 Binspp_core.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 */ \ | ~~~ ^ 38 warnings generated. clang++ -mmacos-version-min=15 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/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/binspp.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 75 | return ::Rf_runif(0, RAND_MAX); //std::rand(); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /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: ./../inst/include/binspp.h:2:9: warning: 'NDEBUG' macro redefined [-Wmacro-redefined] 2 | #define NDEBUG | ^ :1:9: note: previous definition is here 1 | #define NDEBUG 1 | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:3: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:3: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:3: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:3: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:3: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:134:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 134 | mem[i] = ::Rf_runif(0, RAND_MAX); | ~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/arma_rng.hpp:375:21: note: in instantiation of function template specialization 'arma::arma_rng_alt::randi_fill' requested here 375 | arma_rng_alt::randi_fill(mem, N, a, b); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:149:27: note: in instantiation of member function 'arma::arma_rng::randi::fill' requested here 149 | arma_rng::randi::fill(&out_val, uword(1), a, b); | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:168: /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:86:35: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing, double>' requested here 86 | ::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::MatrixExporter, 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/InputParameter.h:34:38: note: in instantiation of function template specialization 'Rcpp::as>' requested here 34 | inline operator T() { return as(x) ; } | ^ RcppExports.cpp:262:45: note: in instantiation of member function 'Rcpp::InputParameter>::operator Mat' requested here 262 | rcpp_result_gen = Rcpp::wrap(logpXCbeta(X, CC, alpha, omega, AreaW, integral)); | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:168: /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/InputParameter.h:34:38: note: in instantiation of function template specialization 'Rcpp::as>' requested here 34 | inline operator T() { return as(x) ; } | ^ RcppExports.cpp:273:40: note: in instantiation of member function 'Rcpp::InputParameter>::operator Col' requested here 273 | rcpp_result_gen = Rcpp::wrap(coeff(theta)); | ^ In file included from RcppExports.cpp:4: In file included from ./../inst/include/binspp.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:168: /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/InputParameter.h:34:38: note: in instantiation of function template specialization 'Rcpp::as>' requested here 34 | inline operator T() { return as(x) ; } | ^ RcppExports.cpp:288:65: note: in instantiation of member function 'Rcpp::InputParameter>::operator Row' requested here 288 | rcpp_result_gen = Rcpp::wrap(BirthInteractionLik(xprop, CC, rho0sum, theta, r)); | ^ 14 warnings generated. clang++ -mmacos-version-min=15 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c STThomas.cpp -o STThomas.o In file included from STThomas.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 75 | return ::Rf_runif(0, RAND_MAX); //std::rand(); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from STThomas.cpp:6: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /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; | ~ ^~ STThomas.cpp:11:10: fatal error: 'omp.h' file not found 11 | #include | ^~~~~~~ 2 warnings and 1 error generated. make[1]: *** [STThomas.o] Error 1 clang++ -mmacos-version-min=15 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c helpers.cpp -o helpers.o In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 75 | return ::Rf_runif(0, RAND_MAX); //std::rand(); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /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 helpers.cpp:2: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ helpers.cpp:83:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 83 | m = floor( theta/-lambda ); | ~ ^~~~~~~~~~~~~~~~~~~~~~ helpers.cpp:87:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 87 | m = ceil(theta*M + k*sqrt( theta*pow(M,3)) ); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ helpers.cpp:92:11: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 92 | m = ceil(theta*M + k*sqrt( theta*pow(M,3)) ); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:134:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 134 | mem[i] = ::Rf_runif(0, RAND_MAX); | ~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/arma_rng.hpp:375:21: note: in instantiation of function template specialization 'arma::arma_rng_alt::randi_fill' requested here 375 | arma_rng_alt::randi_fill(mem, N, a, b); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:149:27: note: in instantiation of member function 'arma::arma_rng::randi::fill' requested here 149 | arma_rng::randi::fill(&out_val, uword(1), a, b); | ^ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:1084:32: note: in instantiation of member function 'Rcpp::sugar::Minus_Vector_Primitive<13, false, Rcpp::sugar::SeqLen>::operator[]' requested here 1084 | RCPP_LOOP_UNROLL(start,other) | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1070:9: note: in instantiation of function template specialization 'Rcpp::Vector<13>::import_expression>' requested here 1070 | 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() ) ; | ^ helpers.cpp:97:30: note: in instantiation of function template specialization 'Rcpp::Vector<13>::Vector>' requested here 97 | IntegerVector to_comp_int= seq_len( m+1 )-1; | ^ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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:1070:9: note: in instantiation of function template specialization 'Rcpp::Vector<14>::import_expression>' requested here 1070 | 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<14>::import_sugar_expression>' requested here 164 | import_sugar_expression( other, typename traits::same_type::type() ) ; | ^ helpers.cpp:149:22: note: in instantiation of function template specialization 'Rcpp::Vector<14>::Vector>' requested here 149 | NumericVector xc = c(_,0); | ^ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:51: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:1084:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 1084 | 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 */ \ | ~~~~~~ ^ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:669: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:10423: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:114:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | set_size(X.size(), 1); | ~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Col_meat.h:29:7: note: in instantiation of function template specialization 'arma::Mat::Mat<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>' requested here 29 | : Mat( X ) | ^ helpers.cpp:151:18: note: in instantiation of function template specialization 'arma::Col::Col<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>' requested here 151 | arma::vec xl = 1-pnorm(xc,xr(0),omega); | ^ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/stats/stats.h:25: /Users/ripley/R/Library/Rcpp/include/Rcpp/stats/dpq/dpq.h:185:42: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 185 | inline int size() const { return vec.size(); } | ~~~~~~ ~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/minus.h:358:45: note: in instantiation of member function 'Rcpp::stats::P2<14, true, Rcpp::Vector<14>>::size' requested here 358 | inline R_xlen_t size() const { return rhs.size() ; } | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/VectorBase.h:49:74: note: in instantiation of member function 'Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>::size' requested here 49 | inline R_xlen_t size() const { return static_cast(this)->size() ; } | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:114:13: note: in instantiation of member function 'Rcpp::VectorBase<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>::size' requested here 114 | set_size(X.size(), 1); | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Col_meat.h:29:7: note: in instantiation of function template specialization 'arma::Mat::Mat<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>' requested here 29 | : Mat( X ) | ^ helpers.cpp:151:18: note: in instantiation of function template specialization 'arma::Col::Col<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>' requested here 151 | arma::vec xl = 1-pnorm(xc,xr(0),omega); | ^ In file included from helpers.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:356:21: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 356 | return lhs - rhs[i] ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/VectorBase.h:46:47: note: in instantiation of member function 'Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>::operator[]' requested here 46 | return static_cast(this)->operator[](i) ; | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:51:16: note: in instantiation of member function 'Rcpp::VectorBase<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>::operator[]' requested here 51 | ptr[i] = X[i] ; | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:58:16: note: in instantiation of function template specialization 'arma::RcppArmadillo::fill_ptr__impl>>>' requested here 58 | return fill_ptr__impl( ptr, X, n_elem, | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:115:17: note: in instantiation of function template specialization 'arma::RcppArmadillo::fill_ptr>>>' requested here 115 | RcppArmadillo::fill_ptr( memptr(), X, n_elem ) ; | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Col_meat.h:29:7: note: in instantiation of function template specialization 'arma::Mat::Mat<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>' requested here 29 | : Mat( X ) | ^ helpers.cpp:151:18: note: in instantiation of function template specialization 'arma::Col::Col<14, true, Rcpp::sugar::Minus_Primitive_Vector<14, true, Rcpp::stats::P2<14, true, Rcpp::Vector<14>>>>' requested here 151 | arma::vec xl = 1-pnorm(xc,xr(0),omega); | ^ 24 warnings generated. clang++ -mmacos-version-min=15 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c par_updates.cpp -o par_updates.o In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 75 | return ::Rf_runif(0, RAND_MAX); //std::rand(); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /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 par_updates.cpp:4: ./header.h:3:9: warning: 'NDEBUG' macro redefined [-Wmacro-redefined] 3 | #define NDEBUG // added in v0.1.23 for MacOS builds | ^ :1:9: note: previous definition is here 1 | #define NDEBUG 1 | ^ In file included from par_updates.cpp:4: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from par_updates.cpp:4: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from par_updates.cpp:4: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from par_updates.cpp:4: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from par_updates.cpp:4: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ par_updates.cpp:56:25: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] 56 | diff_mat(i,_) = Cxy(P(i),_)-Xxy(i,_); | ~~~ ^~~~ par_updates.cpp:29:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 29 | NumericMatrix Cxy(cx.size(),2); | ~~~ ~~~^~~~~~ par_updates.cpp:36:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 36 | NumericMatrix Xxy(xx.size(),2); | ~~~ ~~~^~~~~~ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:134:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 134 | mem[i] = ::Rf_runif(0, RAND_MAX); | ~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/arma_rng.hpp:375:21: note: in instantiation of function template specialization 'arma::arma_rng_alt::randi_fill' requested here 375 | arma_rng_alt::randi_fill(mem, N, a, b); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:149:27: note: in instantiation of member function 'arma::arma_rng::randi::fill' requested here 149 | arma_rng::randi::fill(&out_val, uword(1), a, b); | ^ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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++ ; \ | ~~~ ^ par_updates.cpp:56:19: note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::sugar::Minus_Vector_Vector<14, true, Rcpp::MatrixRow<14>, true, Rcpp::MatrixRow<14>>>' requested here 56 | diff_mat(i,_) = Cxy(P(i),_)-Xxy(i,_); | ^ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:68:27: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 68 | return lhs[i] - rhs[i] ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:56: note: in instantiation of member function 'Rcpp::sugar::Minus_Vector_Vector<14, true, Rcpp::MatrixRow<14>, true, Rcpp::MatrixRow<14>>::operator[]' requested here 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^ par_updates.cpp:56:19: note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::sugar::Minus_Vector_Vector<14, true, Rcpp::MatrixRow<14>, true, Rcpp::MatrixRow<14>>>' requested here 56 | diff_mat(i,_) = Cxy(P(i),_)-Xxy(i,_); | ^ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:68:18: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 68 | return lhs[i] - rhs[i] ; | ~~~ ^ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:77:106: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 77 | Matrix( const MatrixBase& other ) : VECTOR( Rf_allocMatrix( RTYPE, other.nrow(), other.ncol() ) ), nrows(other.nrow()) { | ~~~~~~~~~~~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/cbind.h:517:9: note: in instantiation of function template specialization 'Rcpp::Matrix<14>::Matrix>, Rcpp::sugar::cbind_impl::ContainerBindable<14, Rcpp::Vector<14>>>>' requested here 517 | return (MakeBindable(t1), MakeBindable(t2)); | ^ par_updates.cpp:123:23: note: in instantiation of function template specialization 'Rcpp::sugar::cbind, Rcpp::Vector<14>>' requested here 123 | NumericMatrix Cxy = cbind( cx, cy ); | ^ In file included from par_updates.cpp:4: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:77:92: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 77 | Matrix( const MatrixBase& other ) : VECTOR( Rf_allocMatrix( RTYPE, other.nrow(), other.ncol() ) ), nrows(other.nrow()) { | ~~~~~~~~~~~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:77:130: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 77 | Matrix( const MatrixBase& other ) : VECTOR( Rf_allocMatrix( RTYPE, other.nrow(), other.ncol() ) ), nrows(other.nrow()) { | ~~~~~~~^~~~~~ 26 warnings generated. clang++ -mmacos-version-min=15 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c poit_updates.cpp -o poit_updates.o In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 75 | return ::Rf_runif(0, RAND_MAX); //std::rand(); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /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 poit_updates.cpp:3: ./header.h:3:9: warning: 'NDEBUG' macro redefined [-Wmacro-redefined] 3 | #define NDEBUG // added in v0.1.23 for MacOS builds | ^ :1:9: note: previous definition is here 1 | #define NDEBUG 1 | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ poit_updates.cpp:27:20: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 27 | int switch_idx = floor( R::runif(0, 1)*xx.size()); | ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poit_updates.cpp:28:15: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 28 | int new_P = floor( R::runif(0, 1)*cx.size()); | ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poit_updates.cpp:29:15: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] 29 | int old_P = P(switch_idx); | ~~~~~ ^~~~~~~~~~~~~ poit_updates.cpp:109:17: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 109 | int move_id = floor( R::runif(0, 1)*cx.size()); | ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poit_updates.cpp:158:25: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 158 | dgenpoisbin_cpp(O, lambda, theta, mu, dgp ))+ | ~~~~~~~~~~~~~~~ ^ poit_updates.cpp:157:28: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 157 | log( dgenpoisbin_cpp(O, lambda, theta, mu_star, dgp )/ | ~~~~~~~~~~~~~~~ ^ poit_updates.cpp:207:25: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 207 | arma::vec dist_rat(xx.size()); | ~~~~~~~~ ~~~^~~~~~ poit_updates.cpp:223:33: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 223 | arma::vec U = Rcpp::runif( xx.size() ); | ~~~~ ~~~^~~~~~ poit_updates.cpp:262:47: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 262 | NumericMatrix dist_pmf( Cxy.nrow(), steal.size()); | ~~~~~~~~ ~~~~~~^~~~~~ poit_updates.cpp:351:16: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 351 | int kill_c = floor( R::runif(0, 1)*cx.size()); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poit_updates.cpp:434:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_type' (aka 'unsigned long') [-Wfloat-conversion] 434 | (xy(i)-cy_star[P_star[i]])*(xy(i)-cy_star[P_star[i]]) | ~~~~~~~ ^~~~~~~~~ poit_updates.cpp:434:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_type' (aka 'unsigned long') [-Wfloat-conversion] 434 | (xy(i)-cy_star[P_star[i]])*(xy(i)-cy_star[P_star[i]]) | ~~~~~~~ ^~~~~~~~~ poit_updates.cpp:433:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_type' (aka 'unsigned long') [-Wfloat-conversion] 433 | (xx(i)-cx_star[P_star[i]])*(xx(i)-cx_star[P_star[i]]) + | ~~~~~~~ ^~~~~~~~~ poit_updates.cpp:433:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_type' (aka 'unsigned long') [-Wfloat-conversion] 433 | (xx(i)-cx_star[P_star[i]])*(xx(i)-cx_star[P_star[i]]) + | ~~~~~~~ ^~~~~~~~~ poit_updates.cpp:383:50: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 383 | NumericMatrix dist_pmf( cx_star.size(), move_x.size()); | ~~~~~~~~ ~~~~~~~^~~~~~ poit_updates.cpp:383:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 383 | NumericMatrix dist_pmf( cx_star.size(), move_x.size()); | ~~~~~~~~ ~~~~~~~~^~~~~~ poit_updates.cpp:384:50: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const int' [-Wshorten-64-to-32] 384 | NumericMatrix dist_cdf( cx_star.size(), move_x.size()); | ~~~~~~~~ ~~~~~~~^~~~~~ poit_updates.cpp:384:35: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 384 | NumericMatrix dist_cdf( cx_star.size(), move_x.size()); | ~~~~~~~~ ~~~~~~~~^~~~~~ poit_updates.cpp:406:33: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 406 | arma::vec R = runif( move_x.size()); | ~~~~~ ~~~~~~~^~~~~~ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:145: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/rng/Alt_R_RNG.h:134:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 134 | mem[i] = ::Rf_runif(0, RAND_MAX); | ~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/arma_rng.hpp:375:21: note: in instantiation of function template specialization 'arma::arma_rng_alt::randi_fill' requested here 375 | arma_rng_alt::randi_fill(mem, N, a, b); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:149:27: note: in instantiation of member function 'arma::arma_rng::randi::fill' requested here 149 | arma_rng::randi::fill(&out_val, uword(1), a, b); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:77:106: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 77 | Matrix( const MatrixBase& other ) : VECTOR( Rf_allocMatrix( RTYPE, other.nrow(), other.ncol() ) ), nrows(other.nrow()) { | ~~~~~~~~~~~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/cbind.h:517:9: note: in instantiation of function template specialization 'Rcpp::Matrix<14>::Matrix>, Rcpp::sugar::cbind_impl::ContainerBindable<14, Rcpp::Vector<14>>>>' requested here 517 | return (MakeBindable(t1), MakeBindable(t2)); | ^ poit_updates.cpp:21:23: note: in instantiation of function template specialization 'Rcpp::sugar::cbind, Rcpp::Vector<14>>' requested here 21 | NumericMatrix Xxy = cbind( xx, xy); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:77:92: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 77 | Matrix( const MatrixBase& other ) : VECTOR( Rf_allocMatrix( RTYPE, other.nrow(), other.ncol() ) ), nrows(other.nrow()) { | ~~~~~~~~~~~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:77:130: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 77 | Matrix( const MatrixBase& other ) : VECTOR( Rf_allocMatrix( RTYPE, other.nrow(), other.ncol() ) ), nrows(other.nrow()) { | ~~~~~~~^~~~~~ /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 ) ) ; | ~~~~~~ ^ poit_updates.cpp:47:26: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 47 | double diffNew = ( Xxy(switch_idx,1)-Cxy(new_P,1))*(Xxy(switch_idx,1)-Cxy(new_P,1))+ | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 ) ) ; | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:168: /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: in instantiation of function template specialization 'Rcpp::as>' requested here 174 | return ::Rcpp::as( get() ) ; | ^ poit_updates.cpp:135:17: note: in instantiation of function template specialization 'Rcpp::internal::generic_name_proxy<19>::operator Col>' requested here 135 | arma::vec P = X["P"]; | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:58: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:669: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:10423: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Mat_meat.h:114:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 114 | set_size(X.size(), 1); | ~~~~~~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/internal/Col_meat.h:29:7: note: in instantiation of function template specialization 'arma::Mat::Mat<14, true, Rcpp::Vector<14>>' requested here 29 | : Mat( X ) | ^ poit_updates.cpp:223:17: note: in instantiation of function template specialization 'arma::Col::Col<14, true, Rcpp::Vector<14>>' requested here 223 | arma::vec U = Rcpp::runif( xx.size() ); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:62: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/sum.h:65:23: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 65 | result += object[i] ; | ~~~~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/Lazy.h:31:69: note: in instantiation of member function 'Rcpp::sugar::Sum<14, true, Rcpp::MatrixColumn<14>>::get' requested here 31 | inline operator T() const { return static_cast(*this).get() ; } | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/divides.h:417:59: note: in instantiation of member function 'Rcpp::sugar::Lazy>>::operator double' requested here 417 | return sugar::Divides_Vector_Primitive( lhs, rhs ) ; | ^ poit_updates.cpp:271:36: note: in instantiation of function template specialization 'Rcpp::operator/<14, true, Rcpp::MatrixColumn<14>, Rcpp::sugar::Sum<14, true, Rcpp::MatrixColumn<14>>>' requested here 271 | dist_pmf(_,j) = dist_pmf(_,j)/sum(dist_pmf(_,j)); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:34: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/divides.h:263:15: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 263 | return lhs[i] / rhs ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixColumn.h:69:32: note: in instantiation of member function 'Rcpp::sugar::Divides_Vector_Primitive<14, true, Rcpp::MatrixColumn<14>>::operator[]' requested here 69 | RCPP_LOOP_UNROLL(start,ref) | ^ poit_updates.cpp:271:21: note: in instantiation of function template specialization 'Rcpp::MatrixColumn<14>::operator=<14, true, Rcpp::sugar::Divides_Vector_Primitive<14, true, Rcpp::MatrixColumn<14>>>' requested here 271 | dist_pmf(_,j) = dist_pmf(_,j)/sum(dist_pmf(_,j)); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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++ ; \ | ~~~ ^ poit_updates.cpp:399:19: note: in instantiation of member function 'Rcpp::MatrixRow<14>::operator=' requested here 399 | dist_cdf(0,_) = dist_pmf( 0,_ ); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:72:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 72 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:73:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 73 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:74:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 74 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:75:29: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 75 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:79:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 79 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:81:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 81 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:59: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:163:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 163 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/macros/unroll.h:83:31: note: expanded from macro 'RCPP_LOOP_UNROLL_LHSFUN' 83 | TARGET[FUN(i)] = SOURCE[i] ; i++ ; /* fallthrough */ \ | ~~~~~~ ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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++ ; \ | ~~~ ^ poit_updates.cpp:403:23: note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::sugar::Plus_Vector_Vector<14, true, Rcpp::MatrixRow<14>, true, Rcpp::MatrixRow<14>>>' requested here 403 | dist_cdf( i,_ ) = dist_cdf( i-1,_) + dist_pmf(i,_); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: 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 poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:31: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/plus.h:72:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 72 | return lhs[i] + rhs[i] ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/MatrixRow.h:157:56: note: in instantiation of member function 'Rcpp::sugar::Plus_Vector_Vector<14, true, Rcpp::MatrixRow<14>, true, Rcpp::MatrixRow<14>>::operator[]' requested here 157 | RCPP_LOOP_UNROLL_LHSFUN(start,get_parent_index,ref) | ^ poit_updates.cpp:403:23: note: in instantiation of function template specialization 'Rcpp::MatrixRow<14>::operator=<14, true, Rcpp::sugar::Plus_Vector_Vector<14, true, Rcpp::MatrixRow<14>, true, Rcpp::MatrixRow<14>>>' requested here 403 | dist_cdf( i,_ ) = dist_cdf( i-1,_) + dist_pmf(i,_); | ^ In file included from poit_updates.cpp:3: In file included from ./header.h:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:78: 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:31: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/operators/plus.h:72:15: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 72 | return lhs[i] + rhs[i] ; | ~~~ ^ 62 warnings generated. make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘binspp’ * removing ‘/Users/ripley/R/packages/tests-devel/binspp.Rcheck/binspp’