* installing *source* package ‘support’ ... ** package ‘support’ successfully unpacked and MD5 sums checked ** using staged installation ** libs clang++ -std=gnu++11 -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/BH/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloForward.h:48: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:108: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] return ::Rf_runif(0, RAND_MAX); //std::rand(); ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:498:58: warning: implicit conversion loses integer precision: 'std::basic_string::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return Rf_mkCharLenCE(buffer.c_str(), buffer.size(), enc); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/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] j[ie] = cp; ~ ^~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloForward.h:48: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:108: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/Alt_R_RNG.h:134:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] mem[i] = ::Rf_runif(0, RAND_MAX); ~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/arma_rng.hpp:263:21: note: in instantiation of function template specialization 'arma::arma_rng_alt::randi_fill' requested here arma_rng_alt::randi_fill(mem, N, a, b); ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:69:24: note: in instantiation of member function 'arma::arma_rng::randi::fill' requested here arma_rng::randi::fill(out.memptr(), out.n_elem, a, b); ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:119:10: note: in instantiation of function template specialization 'arma::randi>' requested here return randi(n_rows, n_cols, param); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:36: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloAs.h:655:94: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'arma::uword' (aka 'unsigned int') [-Wshorten-64-to-32] ArmaVec_InputParameter( SEXP x_ ) : v(x_), vec( reinterpret_cast( v.begin() ), v.size(), false ){} ~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloAs.h:690:5: note: in instantiation of member function 'Rcpp::ArmaVec_InputParameter, arma::Col &, Rcpp::traits::integral_constant>::ArmaVec_InputParameter' requested here MAKE_INPUT_PARAMETER(ReferenceInputParameter , arma::Col, arma::Col& ) ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloAs.h:686:27: note: expanded from macro 'MAKE_INPUT_PARAMETER' INPUT_TYPE( SEXP x) : ArmaVec_InputParameter(x){} \ ^ RcppExports.cpp:263:55: note: in instantiation of member function 'Rcpp::ReferenceInputParameter>::ReferenceInputParameter' requested here Rcpp::traits::input_parameter< arma::vec& >::type des(desSEXP); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloForward.h:25: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:166: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:114:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'arma::uword' (aka 'unsigned int') [-Wshorten-64-to-32] res[i] = start[i] ; ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:132:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__impl, double>' requested here export_indexing__impl( ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:155:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__dispatch, double>' requested here 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 ::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 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 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 inline operator T() { return as(x) ; } ^ RcppExports.cpp:365:43: note: in instantiation of member function 'Rcpp::InputParameter>::operator Col' requested here rcpp_result_gen = Rcpp::wrap(opt_hess(zz, omega_vec)); ^ 6 warnings generated. clang++ -std=gnu++11 -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/BH/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c herding.cpp -o herding.o In file included from herding.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloForward.h:48: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:108: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] return ::Rf_runif(0, RAND_MAX); //std::rand(); ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from herding.cpp: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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:498:58: warning: implicit conversion loses integer precision: 'std::basic_string::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return Rf_mkCharLenCE(buffer.c_str(), buffer.size(), enc); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ In file included from herding.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/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] j[ie] = cp; ~ ^~ herding.cpp:8:10: fatal error: 'omp.h' file not found #include ^~~~~~~ 3 warnings and 1 error generated. make[1]: *** [herding.o] Error 1 clang++ -std=gnu++11 -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/BH/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c support.cpp -o support.o In file included from support.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloForward.h:48: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:108: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/Alt_R_RNG.h:75:12: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] return ::Rf_runif(0, RAND_MAX); //std::rand(); ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ In file included from support.cpp: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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:498:58: warning: implicit conversion loses integer precision: 'std::basic_string::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] return Rf_mkCharLenCE(buffer.c_str(), buffer.size(), enc); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ In file included from support.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/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] j[ie] = cp; ~ ^~ In file included from support.cpp:3: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:56:53: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'arma::uword' (aka 'unsigned int') [-Wshorten-64-to-32] const arma::vec prob(prob_.begin(), prob_.size(), false); ~~~~ ~~~~~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:127:35: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] index(ii) = nOrig * unif_rand(); ~ ~~~~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:138:28: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] jj = nOrig * unif_rand(); ~ ~~~~~~^~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:191:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] ii = HL_dat[kk]; ~ ^~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:192:26: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] jj = *L; ~ ^~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:204:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'unsigned int' [-Wfloat-conversion] index[ii] = (rU < prob[kk]) ? kk : alias_tab[kk]; ~ ^~~~~~~~~~~~~ support.cpp:43:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] int pos = barWidth * prop; ~~~ ~~~~~~~~~^~~~~~ support.cpp:271:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] runprod = runprod * (1 - pow(D(i,cn(l,j)-1),2) ); ~ ~~~~~~~^~ support.cpp:282:64: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] runprod = runprod * (1-max(D(i,cn(l,k)-1),D(j,cn(l,k)-1))); ~ ~~~~~~~^~ support.cpp:282:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] runprod = runprod * (1-max(D(i,cn(l,k)-1),D(j,cn(l,k)-1))); ~ ~~~~~~~^~ support.cpp:319:34: warning: implicit conversion turns floating-point number into integer: 'double' to 'const size_t' (aka 'const unsigned long') [-Wfloat-conversion] y[i*d+j] = yMat(i,cn(l,j)-1); ~~~~ ~~~~~~~^~ support.cpp:323:21: warning: unused variable 'p' [-Wunused-variable] int i, j, k, p, maxterms=2000; ^ support.cpp:325:12: warning: unused variable 'meanyy' [-Wunused-variable] double meanyy, meanzz; ^ support.cpp:811:19: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] distint = distind(n); ~ ^~~~~~~~~~ support.cpp:910:5: error: use of undeclared identifier 'omp_set_num_threads' omp_set_num_threads(num_proc); ^ support.cpp:1137:19: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] distint = distind(n); ~ ^~~~~~~~~~ support.cpp:1234:5: error: use of undeclared identifier 'omp_set_num_threads' omp_set_num_threads(num_proc); ^ support.cpp:1623:19: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] distint = distind(n); ~ ^~~~~~~~~~ support.cpp:1564:10: warning: unused variable 'gam_rate' [-Wunused-variable] double gam_rate=gam_param[1]; ^ support.cpp:1563:10: warning: unused variable 'gam_shape' [-Wunused-variable] double gam_shape=gam_param[0]; ^ support.cpp:1571:8: warning: unused variable 'cont2' [-Wunused-variable] bool cont2 = true; //stopping boolean for inside CCCP loop ^ support.cpp:1834:3: warning: unused label 'stop' [-Wunused-label] stop: ^~~~~ support.cpp:1924:21: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] distint = distind(n); ~ ^~~~~~~~~~ In file included from support.cpp:2: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloForward.h:48: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:108: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/Alt_R_RNG.h:134:22: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] mem[i] = ::Rf_runif(0, RAND_MAX); ~ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/arma_rng.hpp:263:21: note: in instantiation of function template specialization 'arma::arma_rng_alt::randi_fill' requested here arma_rng_alt::randi_fill(mem, N, a, b); ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:69:24: note: in instantiation of member function 'arma::arma_rng::randi::fill' requested here arma_rng::randi::fill(out.memptr(), out.n_elem, a, b); ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_randi.hpp:119:10: note: in instantiation of function template specialization 'arma::randi>' requested here return randi(n_rows, n_cols, param); ^ In file included from support.cpp:3: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:56:53: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'arma::uword' (aka 'unsigned int') [-Wshorten-64-to-32] const arma::vec prob(prob_.begin(), prob_.size(), false); ~~~~ ~~~~~~^~~~~~ support.cpp:192:44: note: in instantiation of function template specialization 'Rcpp::RcppArmadillo::sample>' requested here NumericVector ret = Rcpp::RcppArmadillo::sample(x, size, replace, prob); ^ In file included from support.cpp:3: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:73:27: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int nOrig = x.size(); ~~~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadilloExtensions/sample.h:57:18: note: in instantiation of function template specialization 'Rcpp::RcppArmadillo::sample_main>' requested here return sample_main(x, size, replace, prob); ^ support.cpp:192:44: note: in instantiation of function template specialization 'Rcpp::RcppArmadillo::sample>' requested here NumericVector ret = Rcpp::RcppArmadillo::sample(x, size, replace, prob); ^ In file included from support.cpp: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:58: /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] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ support.cpp:229:39: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here runcrittmp += pow(Rcpp_point(j,k) - Rcpp_des(i,k), 2.0); ^ In file included from support.cpp: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:58: /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] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ 29 warnings and 2 errors generated. make[1]: *** [support.o] Error 1 make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘support’ * removing ‘/Users/ripley/R/packages/tests-devel/support.Rcheck/support’