* installing *source* package 'hesim' ... ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 12.3.0' g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o In file included from ../inst/include/hesim/stats/distributions.h:3, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim.h:4, from RcppExports.cpp:4: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c apply_rr.cpp -o apply_rr.o apply_rr.cpp: In function 'arma::rowvec apply_complement(arma::rowvec, int)': apply_rr.cpp:7:21: warning: comparison of integer expressions of different signedness: 'int' and 'arma::uword' {aka 'unsigned int'} [-Wsign-compare] 7 | for (int i = 0; i < x.size(); ++i) { | ~~^~~~~~~~~~ apply_rr.cpp: In function 'void apply_complement(arma::mat&, arma::umat)': apply_rr.cpp:15:21: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 15 | for (int i = 0; i < complement.n_rows; ++i) { | ~~^~~~~~~~~~~~~~~~~~~ apply_rr.cpp: In function 'arma::mat apply_rr(const arma::mat&, arma::rowvec, arma::umat, arma::umat)': apply_rr.cpp:24:21: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 24 | for (int i = 0; i < index.n_rows; ++ i) { | ~~^~~~~~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cea.cpp -o cea.o In file included from cea.cpp:4: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ctstm.cpp -o ctstm.o In file included from ../inst/include/hesim/statmods/obs_index.h:5, from ../inst/include/hesim/ctstm/ctstm.h:3, from ctstm.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim/ctstm/ctstm.h:4: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ ctstm.cpp: In function 'Rcpp::DataFrame C_ctstm_summary(Rcpp::Environment, std::vector, std::string)': ctstm.cpp:39:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 39 | for (int l = 0; l < t.size(); ++l){ | ~~^~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c distributions.cpp -o distributions.o In file included from ../inst/include/hesim/stats/distributions.h:3, from distributions.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dtstm.cpp -o dtstm.o In file included from ../inst/include/hesim/stats/distributions.h:3, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim/statevals.h:4, from dtstm.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ In file included from ../inst/include/hesim/statevals.h:5: ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ../inst/include/hesim/statevals.h: In static member function 'static double hesim::ev::sim_los(std::vector&, std::vector::iterator, double, std::string)': ../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 411 | for (int i = 0; i < times.size(); ++i) { | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h: In member function 'hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector, std::vector, std::vector >, std::string)': ../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 440 | for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop | ~~^~~~~~~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 441 | for (int j = 0; j < dr.size(); ++j){ // start discount rate loop | ~~^~~~~~~~~~~ In file included from dtstm.cpp:2: ../inst/include/hesim/dtstm.h: In member function 'virtual arma::mat hesim::dtstm::mlogit_list::tpmatrix(int, double)': ../inst/include/hesim/dtstm.h:160:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 160 | for (int i = 0; i < mlogit_list_.size(); ++i){ | ~~^~~~~~~~~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c indiv-ctstm.cpp -o indiv-ctstm.o In file included from ../inst/include/hesim/statmods/obs_index.h:5, from ../inst/include/hesim/ctstm/ctstm.h:3, from ../inst/include/hesim/ctstm/indiv-ctstm.h:3, from indiv-ctstm.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim/ctstm/ctstm.h:4: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/ctstm/indiv-ctstm.h: In member function 'bool hesim::ctstm::patient::is_reset_state()': ../inst/include/hesim/ctstm/indiv-ctstm.h:55:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 55 | for (int i = 0; i < reset_states_.size(); ++i){ | ~~^~~~~~~~~~~~~~~~~~~~~~ In file included from indiv-ctstm.cpp:2: ../inst/include/hesim/statevals.h: In static member function 'static double hesim::ev::sim_los(std::vector&, std::vector::iterator, double, std::string)': ../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 411 | for (int i = 0; i < times.size(); ++i) { | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h: In member function 'hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector, std::vector, std::vector >, std::string)': ../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 440 | for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop | ~~^~~~~~~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 441 | for (int j = 0; j < dr.size(); ++j){ // start discount rate loop | ~~^~~~~~~~~~~ indiv-ctstm.cpp: In function 'Rcpp::DataFrame C_ctstm_indiv_stateprobs(Rcpp::DataFrame, std::vector, int, int, std::vector >, std::vector >, int, std::vector >, std::vector >, int, int)': indiv-ctstm.cpp:131:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 131 | for(int i = 0; i < disease_prog.time_start_.size(); ++i){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ indiv-ctstm.cpp:132:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 132 | for(int j = 0; j < t.size(); ++j){ | ~~^~~~~~~~~~ indiv-ctstm.cpp:153:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 153 | for (int i = 0; i < out.prob_.size(); ++i){ | ~~^~~~~~~~~~~~~~~~~~ indiv-ctstm.cpp:163:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 163 | for (int r = 0; r < t.size(); ++r){ | ~~^~~~~~~~~~ indiv-ctstm.cpp: In function 'std::vector C_indiv_ctstm_starting(Rcpp::DataFrame, std::vector >, std::vector >, Rcpp::Environment, double, std::string)': indiv-ctstm.cpp:318:30: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 318 | for (unsigned int i = 0; i < N; ++i){ | ~~^~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c psm.cpp -o psm.o In file included from ../inst/include/hesim/stats/distributions.h:3, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim/psm.h:3, from psm.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ In file included from ../inst/include/hesim/psm.h:4: ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from psm.cpp:2: ../inst/include/hesim/statevals.h: In static member function 'static double hesim::ev::sim_los(std::vector&, std::vector::iterator, double, std::string)': ../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 411 | for (int i = 0; i < times.size(); ++i) { | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h: In member function 'hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector, std::vector, std::vector >, std::string)': ../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 440 | for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop | ~~^~~~~~~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 441 | for (int j = 0; j < dr.size(); ++j){ // start discount rate loop | ~~^~~~~~~~~~~ psm.cpp: In function 'Rcpp::DataFrame C_psm_curves_summary(Rcpp::Environment, std::vector, std::string, double)': psm.cpp:233:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 233 | for (int j = 0; j < x.size(); ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c statevals.cpp -o statevals.o In file included from ../inst/include/hesim/stats/distributions.h:3, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim/statevals.h:4, from statevals.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ In file included from ../inst/include/hesim/statevals.h:5: ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ../inst/include/hesim/statevals.h: In static member function 'static double hesim::ev::sim_los(std::vector&, std::vector::iterator, double, std::string)': ../inst/include/hesim/statevals.h:411:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 411 | for (int i = 0; i < times.size(); ++i) { | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h: In member function 'hesim::ev_out hesim::ev::operator()(hesim::stateprobs_out, std::vector, std::vector, std::vector >, std::string)': ../inst/include/hesim/statevals.h:440:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 440 | for (int k = 0; k < statevals_.size(); ++k){ // start outcome loop | ~~^~~~~~~~~~~~~~~~~~~ ../inst/include/hesim/statevals.h:441:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 441 | for (int j = 0; j < dr.size(); ++j){ // start discount rate loop | ~~^~~~~~~~~~~ statevals.cpp: In function 'Rcpp::DataFrame C_statevals_sim(Rcpp::Environment, std::vector, std::string)': statevals.cpp:40:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 40 | for (int t = 0; t < times.size(); ++t){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-composite.cpp -o test-composite.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-ctstm.cpp -o test-ctstm.o In file included from ../inst/include/hesim/statmods/obs_index.h:5, from ../inst/include/hesim/ctstm/ctstm.h:3, from test-ctstm.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6, from ../inst/include/hesim/statmods/statmods.h:3, from ../inst/include/hesim/ctstm/ctstm.h:4: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::summary(int, int, std::vector, std::string, double)': ../inst/include/hesim/statmods/statmods.h:246:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 246 | for (int i = 0; i < t.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/statmods/statmods.h: In member function 'std::vector hesim::statmods::surv::quantile(int, int, std::vector)': ../inst/include/hesim/statmods/statmods.h:280:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 280 | for (int i = 0; i < p.size(); ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-distributions.cpp -o test-distributions.o In file included from ../inst/include/hesim/stats/distributions.h:3, from test-distributions.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-obs_index.cpp -o test-obs_index.o In file included from ../inst/include/hesim/statmods/obs_index.h:5, from test-obs_index.cpp:1: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/statmods/obs_index.h: In member function 'int hesim::statmods::obs_index::get_health_id()': ../inst/include/hesim/statmods/obs_index.h:290:31: warning: comparison of integer expressions of different signedness: 'std::vector >::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 290 | if (health_id_vec_.size() != n_obs_){ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-quad.cpp -o test-quad.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-riemann.cpp -o test-riemann.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-rtrunc.cpp -o test-rtrunc.o In file included from ../inst/include/hesim/stats/distributions.h:3, from test-rtrunc.cpp:3: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ In file included from ../inst/include/hesim/stats/distributions.h:6: ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ ../inst/include/hesim/stats/distributions.h: In member function 'virtual double hesim::stats::piecewise_exponential::trandom(double, double) const': ../inst/include/hesim/stats/distributions.h:348:13: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 348 | if (t == j){ | ~~^~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const distribution*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const distribution*]' ../inst/include/hesim/stats/distributions.h:207:23: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 106 | for (int i = 0; i < times.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const exponential*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const exponential*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const exponential*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:299:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:412:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_ph*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_ph*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_ph*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:473:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const weibull_nma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const weibull_nma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const weibull_nma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:534:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:588:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const lognormal*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const lognormal*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const lognormal*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:643:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gompertz*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gompertz*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gompertz*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:724:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const loglogistic*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const loglogistic*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const loglogistic*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:780:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] ../inst/include/hesim/stats/survfuns.h: In instantiation of 'std::vector hesim::stats::cumhazard_numeric(Func, std::vector, std::string) [with Func = surv_sample(const gengamma*, double, double, double)::; std::string = std::__cxx11::basic_string]': ../inst/include/hesim/stats/survfuns.h:215:52: required from 'double hesim::stats::surv_sample(Dist, double, double, double) [with Dist = const gengamma*]' ../inst/include/hesim/stats/rtrunc.h:98:23: required from 'double hesim::stats::rtrunc(Dist, double, double, std::string) [with Dist = const gengamma*; std::string = std::__cxx11::basic_string]' ../inst/include/hesim/stats/distributions.h:875:18: required from here ../inst/include/hesim/stats/survfuns.h:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long long unsigned int'} [-Wsign-compare] g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-survfuns.cpp -o test-survfuns.o In file included from ../inst/include/hesim/stats/survfuns.h:6, from test-survfuns.cpp:3: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/stats/survfuns.h: In function 'double hesim::stats::surv_sample(std::vector&, std::vector, bool)': ../inst/include/hesim/stats/survfuns.h:156:24: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 156 | while(died == 0 && i < n_times){ | ~~^~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-utils.cpp -o test-utils.o In file included from test-utils.cpp:3: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c test-zeroin.cpp -o test-zeroin.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c utils.cpp -o utils.o In file included from utils.cpp:3: ../inst/include/hesim/utils.h: In member function 'int hesim::trans_mat::count_non_nan(arma::mat)': ../inst/include/hesim/utils.h:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 203 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:204:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 204 | for (int j = 0; j < m.n_cols; ++j){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h: In member function 'std::vector hesim::trans_mat::is_absorbing(std::vector > >)': ../inst/include/hesim/utils.h:220:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector > >::size_type' {aka 'long long unsigned int'} [-Wsign-compare] 220 | for (int i = 0; i < trans.size(); ++i){ | ~~^~~~~~~~~~~~~~ ../inst/include/hesim/utils.h: In constructor 'hesim::trans_mat::trans_mat(arma::mat, bool)': ../inst/include/hesim/utils.h:252:23: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 252 | for (int i = 0; i < m.n_rows; ++i){ | ~~^~~~~~~~~~ ../inst/include/hesim/utils.h:256:25: warning: comparison of integer expressions of different signedness: 'int' and 'const arma::uword' {aka 'const unsigned int'} [-Wsign-compare] 256 | for (int j = 0; j < m_row.n_elem; ++j){ | ~~^~~~~~~~~~~~~~ g++ -std=gnu++17 -shared -s -static-libgcc -o hesim.dll tmp.def RcppExports.o apply_rr.o cea.o ctstm.o distributions.o dtstm.o indiv-ctstm.o psm.o statevals.o test-composite.o test-ctstm.o test-distributions.o test-obs_index.o test-quad.o test-riemann.o test-rtrunc.o test-survfuns.o test-utils.o test-zeroin.o utils.o -LD:/RCompile/recent/R/bin/x64 -lRlapack -LD:/RCompile/recent/R/bin/x64 -lRblas -lgfortran -lm -lquadmath -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR installing to d:/RCompile/CRANincoming/R-devel/lib/00LOCK-hesim/00new/hesim/libs/x64 ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (hesim)