Running 'testthat.R' [176s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(gppm)
  Loading required package: Rcpp
  > 
  > test_check("gppm")
  file256c810b646f.cpp:6:36: warning: ISO C99 requires whitespace after the macro name
   #define STAN__SERVICES__COMMAND_HPP#include <boost/integer/integer_log2.hpp>
                                      ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat.hpp:336,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:35,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3,
                   from file256c810b646f.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp: In function 'typename stan::return_type<T_x, T_alpha, T_beta>::type stan::math::poisson_log_glm_lpmf(const T_y&, const T_x&, const T_alpha&, const T_beta&)':
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp:64:59: warning: typedef 'T_alpha_val' locally defined but not used [-Wunused-local-typedefs]
         typename partials_return_type<T_alpha>::type>::type T_alpha_val;
                                                             ^
  file256c810b646f.cpp: In member function 'void model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
  file256c810b646f.cpp:184:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
           typedef double local_scalar_t__;
                          ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3:0,
                   from file256c810b646f.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp: In instantiation of 'SEXPREC* rstan::stan_fit<Model, RNG_t>::standalone_gqs(SEXP, SEXP) [with Model = model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8; RNG_t = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; SEXP = SEXPREC*]':
  file256c810b646f.cpp:888:0:   required from here
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:1238:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
       int ret = stan::services::error_codes::CONFIG;
           ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:52:0,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3,
                   from file256c810b646f.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp: In instantiation of 'int stan::services::standalone_generate(const Model&, const MatrixXd&, unsigned int, stan::callbacks::interrupt&, stan::callbacks::logger&, stan::callbacks::writer&) [with Model = model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8; Eigen::MatrixXd = Eigen::Matrix<double, -1, -1>]':
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:1240:80:   required from 'SEXPREC* rstan::stan_fit<Model, RNG_t>::standalone_gqs(SEXP, SEXP) [with Model = model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8; RNG_t = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; SEXP = SEXPREC*]'
  file256c810b646f.cpp:888:0:   required from here
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:92:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (p_names.size() != draws.cols()) {
                        ^
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:110:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (size_t i = 0; i < draws.rows(); ++i) {
                          ^
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp: In instantiation of 'void stan::services::get_model_parameters(const Model&, std::vector<std::basic_string<char> >&, std::vector<std::vector<long long unsigned int> >&) [with Model = model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8]':
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:106:55:   required from 'int stan::services::standalone_generate(const Model&, const MatrixXd&, unsigned int, stan::callbacks::interrupt&, stan::callbacks::logger&, stan::callbacks::writer&) [with Model = model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8; Eigen::MatrixXd = Eigen::Matrix<double, -1, -1>]'
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:1240:80:   required from 'SEXPREC* rstan::stan_fit<Model, RNG_t>::standalone_gqs(SEXP, SEXP) [with Model = model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8_namespace::model256c81c42c8e_cc8f3109b986eaee1bfa5017266ea0e8; RNG_t = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; SEXP = SEXPREC*]'
  file256c810b646f.cpp:888:0:   required from here
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int j = 0; j < dimss[i].size(); ++j)
                         ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/rev/core.hpp:45:0,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:35,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3,
                   from file256c810b646f.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13: warning: 'void stan::math::set_zero_all_adjoints()' defined but not used [-Wunused-function]
   static void set_zero_all_adjoints() {
               ^
  file256c871db353c.cpp:6:36: warning: ISO C99 requires whitespace after the macro name
   #define STAN__SERVICES__COMMAND_HPP#include <boost/integer/integer_log2.hpp>
                                      ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat.hpp:336,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:35,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3,
                   from file256c871db353c.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp: In function 'typename stan::return_type<T_x, T_alpha, T_beta>::type stan::math::poisson_log_glm_lpmf(const T_y&, const T_x&, const T_alpha&, const T_beta&)':
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp:64:59: warning: typedef 'T_alpha_val' locally defined but not used [-Wunused-local-typedefs]
         typename partials_return_type<T_alpha>::type>::type T_alpha_val;
                                                             ^
  file256c871db353c.cpp: In member function 'void model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
  file256c871db353c.cpp:184:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
           typedef double local_scalar_t__;
                          ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3:0,
                   from file256c871db353c.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp: In instantiation of 'SEXPREC* rstan::stan_fit<Model, RNG_t>::standalone_gqs(SEXP, SEXP) [with Model = model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5; RNG_t = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; SEXP = SEXPREC*]':
  file256c871db353c.cpp:888:0:   required from here
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:1238:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
       int ret = stan::services::error_codes::CONFIG;
           ^
  In file included from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:52:0,
                   from D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/rstaninc.hpp:3,
                   from file256c871db353c.cpp:7:
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp: In instantiation of 'int stan::services::standalone_generate(const Model&, const MatrixXd&, unsigned int, stan::callbacks::interrupt&, stan::callbacks::logger&, stan::callbacks::writer&) [with Model = model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5; Eigen::MatrixXd = Eigen::Matrix<double, -1, -1>]':
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:1240:80:   required from 'SEXPREC* rstan::stan_fit<Model, RNG_t>::standalone_gqs(SEXP, SEXP) [with Model = model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5; RNG_t = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; SEXP = SEXPREC*]'
  file256c871db353c.cpp:888:0:   required from here
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:92:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (p_names.size() != draws.cols()) {
                        ^
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:110:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (size_t i = 0; i < draws.rows(); ++i) {
                          ^
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp: In instantiation of 'void stan::services::get_model_parameters(const Model&, std::vector<std::basic_string<char> >&, std::vector<std::vector<long long unsigned int> >&) [with Model = model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5]':
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:106:55:   required from 'int stan::services::standalone_generate(const Model&, const MatrixXd&, unsigned int, stan::callbacks::interrupt&, stan::callbacks::logger&, stan::callbacks::writer&) [with Model = model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5; Eigen::MatrixXd = Eigen::Matrix<double, -1, -1>]'
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/rstan/include/rstan/stan_fit.hpp:1240:80:   required from 'SEXPREC* rstan::stan_fit<Model, RNG_t>::standalone_gqs(SEXP, SEXP) [with Model = model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5_namespace::model256c8319d3ca0_20e9a597c25956ce5c3590ed0d979bd5; RNG_t = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; SEXP = SEXPREC*]'
  file256c871db353c.cpp:888:0:   required from here
  D:/temp/RtmpA9Qb5D/RLIBS_161704ab171/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:41:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int j = 0; j < dimss[i].size(); ++j)
                         ^
  
  cc1plus.exe: out of memory allocating 65536 bytes
  make[1]: *** [file256c871db353c.o] Error 1
  -- 1. Error: cross check with idependent calculation (@test-predict.R#8)  ------
  cannot open the connection
  Backtrace:
    1. gppm::gppm(...)
    2. gppm:::toStan(theModel$parsedModel, control)
    8. rstan::stan_model(model_code = theCode, auto_write = TRUE)
    9. rstan:::cxxfunctionplus(...)
   13. inline::cxxfunction(...)
   14. inline:::compileCode(f, code, language = language, verbose = verbose)
   15. base::readLines(errfile)
   16. base::file(con, "r")
  
  -- 2. Error: cross check with idependent calculation (@test-predict.R#8)  ------
  invalid connection
  Backtrace:
    1. gppm::gppm(...)
    2. gppm:::toStan(theModel$parsedModel, control)
    8. rstan::stan_model(model_code = theCode, auto_write = TRUE)
    9. rstan:::cxxfunctionplus(...)
   10. base::sink(type = "output")
  
  == testthat results  ===========================================================
  [ OK: 1808 | SKIPPED: 4 | WARNINGS: 3 | FAILED: 2 ]
  1. Error: cross check with idependent calculation (@test-predict.R#8) 
  2. Error: cross check with idependent calculation (@test-predict.R#8) 
  
  Error: testthat unit tests failed
  Execution halted