* installing *source* package ‘BIDistances’ ... ** this is package ‘BIDistances’ version ‘0.1.5’ ** package ‘BIDistances’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.1.1.101)’ using SDK: ‘MacOSX26.5.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c InnerVariableDifferencesRcpp.cpp -o InnerVariableDifferencesRcpp.o In file included from InnerVariableDifferencesRcpp.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ In file included from InnerVariableDifferencesRcpp.cpp:3: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from InnerVariableDifferencesRcpp.cpp:3: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from InnerVariableDifferencesRcpp.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:26:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 26 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from InnerVariableDifferencesRcpp.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:32:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 32 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:42:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 42 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ 19 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ 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:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ 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/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:519: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ 16 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c SND.cpp -o SND.o In file included from SND.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ In file included from SND.cpp:3: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from SND.cpp:3: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ SND.cpp:31:14: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical] 31 | if((AdjMat(i,k) == 1) & (AdjMat(j,k) == 1)){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | && SND.cpp:31:14: note: cast one or both operands to int to silence this warning In file included from SND.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:26:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 26 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from SND.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:32:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 32 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:42:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 42 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ 20 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c fastPdistC.cpp -o fastPdistC.o In file included from fastPdistC.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:33: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from fastPdistC.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from fastPdistC.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ fastPdistC.cpp:19:15: warning: implicit conversion loses integer precision: 'std::size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 19 | int k = A.ncol(); | ~ ~~^~~~~~ In file included from fastPdistC.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:26:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 26 | return requestedValue; | ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:40:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 40 | grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, std::size_t(1)); | ^ In file included from fastPdistC.cpp:2: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:32:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 32 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:42:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 42 | return defaultValue; | ~~~~~~ ^~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:45:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] 45 | return value; | ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:41:17: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here 41 | numThreads = resolveValue("RCPP_PARALLEL_NUM_THREADS", numThreads, -1); | ^ 20 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o BIDistances.so InnerVariableDifferencesRcpp.o RcppExports.o SND.o fastPdistC.o -L/Users/ripley/R/R-devel/lib -lRlapack -L/Users/ripley/R/R-devel/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -L/Users/ripley/R/Library/RcppParallel/lib -Wl,-rpath,/Users/ripley/R/Library/RcppParallel/lib -ltbb -ltbbmalloc -L/Users/ripley/R/R-devel/lib -lR installing to /Users/ripley/R/packages/tests-devel/BIDistances.Rcheck/00LOCK-BIDistances/00new/BIDistances/libs ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (BIDistances)