Running ‘testthat.R’ [354s/429s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(rstansim)
  Loading required package: Rcpp
  > 
  > test_check("rstansim")
  ── 1. Error: single_sim testing with stansim_data input (@test-single_sim.R#426)
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 148: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 235: The function "free" must have a prototype.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 503: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 529: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/check_adapter.hpp" is not terminated with a newline.
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  7 Fatal error: Command failed for target `file448a4e021157.o'
  Current working directory /tmp/RtmpswaqrI
  1: capture_output(test_stanfit <- rstan::stan_model(file = "data-raw/simtestreg.stan")) at testthat/test-single_sim.R:426
  2: capture_output_lines(code, print, width = width)
  3: eval_with_output(code, print = print, width = width)
  4: withr::with_output_sink(temp, withVisible(code))
  5: force(code)
  6: withVisible(code)
  7: rstan::stan_model(file = "data-raw/simtestreg.stan")
  8: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  9: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  10: compileCode(f, code, language = language, verbose = verbose)
  11: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  ── 2. Error: stansim test with stansim_data object; cache FALSE, loo FALSE (@tes
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 148: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 235: The function "free" must have a prototype.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 503: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 529: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/check_adapter.hpp" is not terminated with a newline.
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  7 Fatal error: Command failed for target `file448aaba5e8a.o'
  Current working directory /tmp/RtmpswaqrI
  1: capture_output(ss_data <- simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)$datasets) at testthat/test-stansim_external_functions.R:805
  2: capture_output_lines(code, print, width = width)
  3: eval_with_output(code, print = print, width = width)
  4: withr::with_output_sink(temp, withVisible(code))
  5: force(code)
  6: withVisible(code)
  7: simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)
  8: rstan::stan_model(file = file)
  9: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  10: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  11: compileCode(f, code, language = language, verbose = verbose)
  12: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  ── 3. Error: stansim test with stansim_data object; cache TRUE, loo FALSE (@test
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 148: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 235: The function "free" must have a prototype.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 503: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 529: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/check_adapter.hpp" is not terminated with a newline.
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  7 Fatal error: Command failed for target `file448a7f118a9.o'
  Current working directory /tmp/RtmpswaqrI
  1: capture_output(ss_data <- simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)$datasets) at testthat/test-stansim_external_functions.R:994
  2: capture_output_lines(code, print, width = width)
  3: eval_with_output(code, print = print, width = width)
  4: withr::with_output_sink(temp, withVisible(code))
  5: force(code)
  6: withVisible(code)
  7: simulate_data(file = "data-raw/simtestreg.stan", data_name = "saved stansim_data", 
         input_data = reg_data, nsim = 1, path = "testdir", param_values = test_vals, 
         vars = c("sim_x", "sim_y", "N"), use_cores = 1)
  8: rstan::stan_model(file = file)
  9: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  10: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  11: compileCode(f, code, language = language, verbose = verbose)
  12: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  ── 4. Error: (unknown) (@test-stansim_simulate-utilities.R#4)  ─────────────────
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 148: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 235: The function "free" must have a prototype.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 503: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 529: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/check_adapter.hpp" is not terminated with a newline.
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  7 Fatal error: Command failed for target `file448a76cb2910.o'
  Current working directory /tmp/RtmpswaqrI
  1: capture_output(compiled_model <- rstan::stan_model(file = "data-raw/simtestreg.stan")) at testthat/test-stansim_simulate-utilities.R:4
  2: capture_output_lines(code, print, width = width)
  3: eval_with_output(code, print = print, width = width)
  4: withr::with_output_sink(temp, withVisible(code))
  5: force(code)
  6: withVisible(code)
  7: rstan::stan_model(file = "data-raw/simtestreg.stan")
  8: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  9: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  10: compileCode(f, code, language = language, verbose = verbose)
  11: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  ── 5. Error: simulate_data returns correct output (@test-stansim_simulate.R#135)
  Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 148: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 235: The function "free" must have a prototype.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 503: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/RcppEigen/include/Eigen/src/SparseCore/SparseBlock.h", line 529: Cannot define member of undefined specialization "unary_evaluator<Block<ArgType, BlockRows, BlockCols, InnerPanel>, Eigen::internal::IteratorBased>".
  "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/RtmpP2a43x/RLIBS_2fbf2e88356d/BH/include/boost/numeric/odeint/integrate/check_adapter.hpp" is not terminated with a newline.
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/value.hpp", line 26: Warning: rstan::value::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::vector<std::string>&).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()(const std::string &).
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  "/home/ripley/R/Lib32/rstan/include/rstan/values.hpp", line 50: Warning: rstan::values<Rcpp::Vector<14, PreserveStorage>>::operator() hides the virtual function stan::callbacks::writer::operator()().
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: While specializing "rstan::values<Rcpp::Vector<14, PreserveStorage>>".
  "/home/ripley/R/Lib32/rstan/include/rstan/filtered_values.hpp", line 17:     Where: Specialized in rstan::filtered_values<Rcpp::Vector<14, PreserveStorage>>.
  "/home/ripley/R/Lib32/rstan/include/rstan/rstan_writer.hpp", line 17:     Where: Specialized in non-template code.
  7 Fatal error: Command failed for target `file448a5bd75612.o'
  Current working directory /tmp/RtmpswaqrI
  1: capture_output(output1 <- simulate_data(file = "data-raw/simtestreg.stan", data_name = "test data", 
         input_data = reg_data, vars = c("sim_x", "sim_y", "N"), path = "testdir", param_values = test_vals, 
         nsim = 5)) at testthat/test-stansim_simulate.R:135
  2: capture_output_lines(code, print, width = width)
  3: eval_with_output(code, print = print, width = width)
  4: withr::with_output_sink(temp, withVisible(code))
  5: force(code)
  6: withVisible(code)
  7: simulate_data(file = "data-raw/simtestreg.stan", data_name = "test data", input_data = reg_data, 
         vars = c("sim_x", "sim_y", "N"), path = "testdir", param_values = test_vals, 
         nsim = 5)
  8: rstan::stan_model(file = file)
  9: cxxfunctionplus(signature(), body = paste(" return Rcpp::wrap(\"", model_name, "\");", 
         sep = ""), includes = inc, plugin = "rstan", save_dso = save_dso | auto_write, 
         module_name = paste("stan_fit4", model_cppname, "_mod", sep = ""), verbose = verbose)
  10: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  11: compileCode(f, code, language = language, verbose = verbose)
  12: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1067 SKIPPED: 0 FAILED: 5
  1. Error: single_sim testing with stansim_data input (@test-single_sim.R#426) 
  2. Error: stansim test with stansim_data object; cache FALSE, loo FALSE (@test-stansim_external_functions.R#805) 
  3. Error: stansim test with stansim_data object; cache TRUE, loo FALSE (@test-stansim_external_functions.R#994) 
  4. Error: (unknown) (@test-stansim_simulate-utilities.R#4) 
  5. Error: simulate_data returns correct output (@test-stansim_simulate.R#135) 
  
  Error: testthat unit tests failed
  Execution halted