* installing *source* package ‘blockcpd’ ... ** package ‘blockcpd’ successfully unpacked and MD5 sums checked ** using staged installation ** libs clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Blockcpd.cpp -o Blockcpd.o In file included from Blockcpd.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ Blockcpd.cpp:27:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1] - col_samples[left_index - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:30:20: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:49:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1] - col_samples[left_index - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:53:20: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:88:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] n_samples0 = col_samples0[right_index - 2] - col_samples0[left_index - 3]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:89:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] n_samples1 = col_samples1[right_index - 2] - col_samples1[left_index - 3]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:93:22: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] n_samples0 = col_samples0[right_index - 2]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:94:22: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] n_samples1 = col_samples1[right_index - 2]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:114:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1] - col_samples[left_index - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:117:20: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:130:49: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1] - col_samples[left_index - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:133:20: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[right_index - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:145:10: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] return(-loglike); ~~~~~~ ^~~~~~~~ Blockcpd.cpp:151:54: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] return compute_negloglike(left_index, right_index) + *REAL(pen_func(left_index, right_index)); ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:157:10: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] return *REAL(pen_func(left_index, right_index)); ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:192:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1] - col_samples[block_begin[i] - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:195:22: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:217:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1] - col_samples[block_begin[i] - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:221:22: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:255:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_samples0 = col_samples0[block_end[i] - 2] - col_samples0[block_begin[i] - 3]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:256:57: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_samples1 = col_samples1[block_end[i] - 2] - col_samples1[block_begin[i] - 3]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:260:26: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_samples0 = col_samples0[block_end[i] - 2]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:261:26: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_samples1 = col_samples1[block_end[i] - 2]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:284:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1] - col_samples[block_begin[i] - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:287:22: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:305:52: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1] - col_samples[block_begin[i] - 2]; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:308:22: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'int' [-Wfloat-conversion] block_size = col_samples[block_end[i] - 1]; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blockcpd.cpp:161:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] int n_blocks = changepoints.size() + 1; ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~ 29 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Dynseg.cpp -o Dynseg.o In file included from Dynseg.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ Dynseg.cpp:19:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] negloglike -= *REAL(pen_func(1, changepoints[0])); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dynseg.cpp:21:21: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] negloglike -= *REAL(pen_func(changepoints[i] + 1, changepoints[i + 1])); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dynseg.cpp:23:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] negloglike -= *REAL(pen_func(changepoints[changepoints.size()] + 1, ncol)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dynseg.cpp:26:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] negloglike -= *REAL(pen_func(1, ncol)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~ Dynseg.cpp:64:30: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] float min_loss = best_loss.get_value(0, ncol - 1); // loss for best_k ~~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Dynseg.cpp:89:30: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] min_loss = best_loss.get_value(k, ncol - 1); ~ ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Dynseg.cpp:103:21: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] segi = cp_mat.get_value(j, segf); ~ ~~~~~~~^~~~~~~~~~~~~~~~~~ 8 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Hierseg.cpp -o Hierseg.o In file included from Hierseg.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ 1 warning generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/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:135: /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:553: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:135: /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:54: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:104:10: note: in instantiation of function template specialization 'arma::randi>' requested here return randi(n_rows, n_cols, param); ^ 4 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c TriangularMatrix.cpp -o TriangularMatrix.o In file included from TriangularMatrix.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ 1 warning generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c compute_dynseg.cpp -o compute_dynseg.o In file included from compute_dynseg.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ 1 warning generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c compute_hierseg.cpp -o compute_hierseg.o In file included from compute_hierseg.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ 1 warning generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c compute_suff_stats.cpp -o compute_suff_stats.o In file included from compute_suff_stats.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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 compute_suff_stats.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:58: /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] return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ compute_suff_stats.cpp:33:20: note: in instantiation of member function 'Rcpp::Matrix<13>::operator()' requested here if(data_mat(i, j) == 0){ ^ In file included from compute_suff_stats.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:58: /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] return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ 3 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c metrics.cpp -o metrics.o In file included from metrics.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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); ~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ metrics.cpp:11:15: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int l_A = A.length(); ~~~ ~~^~~~~~~~ metrics.cpp:12:15: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int l_B = B.length(); ~~~ ~~^~~~~~~~ metrics.cpp:69:10: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] return(rand); ~~~~~~ ^~~~ metrics.cpp:53:21: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int len_cp1 = cp1.length(); ~~~~~~~ ~~~~^~~~~~~~ metrics.cpp:54:21: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int len_cp2 = cp2.length(); ~~~~~~~ ~~~~^~~~~~~~ metrics.cpp:104:40: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] int sd = cp1.length() + cp2.length() - 2*cp_inter.length(); ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ metrics.cpp:121:40: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int size_inter = intersect(cp1, cp2).length(); ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~ metrics.cpp:122:37: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] int size_union = union_(cp1, cp2).length(); ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~~~ 9 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c rcpd.cpp -o rcpd.o In file included from rcpd.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:69: /Users/ripley/R/Library/Rcpp/include/Rcpp/String.h:553: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 rcpd.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: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 ) ) ; ~~~~~~ ^ rcpd.cpp:22:24: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here if(data_mat(i, c - 1) == 0){ ^ In file included from rcpd.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: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 ) ) ; ~~~~~~ ^ 3 warnings generated. clang++ -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o blockcpd.so Blockcpd.o Dynseg.o Hierseg.o RcppExports.o TriangularMatrix.o compute_dynseg.o compute_hierseg.o compute_suff_stats.o metrics.o rcpd.o -L/Users/ripley/R/R-devel/lib -lR -Wl,-framework -Wl,CoreFoundation installing to /Users/ripley/R/packages/tests-devel/blockcpd.Rcheck/00LOCK-blockcpd/00new/blockcpd/libs ** R ** 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 Error: package or namespace load failed for ‘blockcpd’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Users/ripley/R/packages/tests-devel/blockcpd.Rcheck/00LOCK-blockcpd/00new/blockcpd/libs/blockcpd.so': dlopen(/Users/ripley/R/packages/tests-devel/blockcpd.Rcheck/00LOCK-blockcpd/00new/blockcpd/libs/blockcpd.so, 0x0006): symbol not found in flat namespace (__ZN16TriangularMatrixIdE9get_valueEii) Error: loading failed Execution halted ERROR: loading failed * removing ‘/Users/ripley/R/packages/tests-devel/blockcpd.Rcheck/blockcpd’