Running ‘testthat.R’ [296s/361s]
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 147: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: The function "free" must have a prototype.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/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/Rtmpg0aqxf/RLIBS_aba254a297/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/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/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 `file235d41484238.o'
  Current working directory /tmp/Rtmp1UaORr
  1: capture_output(test_stanfit <- rstan::stan_model(file = "data-raw/simtestreg.stan")) at testthat/test-single_sim.R:426
  2: capture_output_as_vector(code, print)
  3: with_sink(temp, withVisible(code))
  4: withVisible(code)
  5: rstan::stan_model(file = "data-raw/simtestreg.stan")
  6: 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)
  7: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  8: compileCode(f, code, language = language, verbose = verbose)
  9: 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 (@test-stansim_external_functions.R#805) 
  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 147: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: The function "free" must have a prototype.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/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/Rtmpg0aqxf/RLIBS_aba254a297/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/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/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 `file235d7a31470d.o'
  Current working directory /tmp/Rtmp1UaORr
  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_as_vector(code, print)
  3: with_sink(temp, withVisible(code))
  4: withVisible(code)
  5: 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)
  6: rstan::stan_model(file = file)
  7: 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)
  8: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  9: compileCode(f, code, language = language, verbose = verbose)
  10: 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-stansim_external_functions.R#994) 
  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 147: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: The function "free" must have a prototype.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 99: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryView<ViewOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/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/Rtmpg0aqxf/RLIBS_aba254a297/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/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/numeric/odeint/integrate/integrate_const.hpp", line 26: Warning: Last line in file "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/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 `file235d66aa3996.o'
  Current working directory /tmp/Rtmp1UaORr
  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_as_vector(code, print)
  3: with_sink(temp, withVisible(code))
  4: withVisible(code)
  5: 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)
  6: rstan::stan_model(file = file)
  7: 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)
  8: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  9: compileCode(f, code, language = language, verbose = verbose)
  10: stop(paste("Compilation ERROR, function(s)/method(s) not created!", paste(errmsg, 
         collapse = "\n")))
  
  Error in compileCode(f, code, language = language, verbose = verbose) : 
    Compilation ERROR, function(s)/method(s) not created! "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 39: Error: The function "malloc" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 147: Error: The function "free" must have a prototype.
  "/home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp", line 234: Error: The function "free" must have a prototype.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/BH/include/boost/config/compiler/sunpro_cc.hpp", line 117: Warning (Anachronism): Attempt to redefine BOOST_NO_CXX11_RVALUE_REFERENCES without using #undef.
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnaryOp.h", line 49: Error: Cannot define member of undefined specialization "unary_evaluator<CwiseUnaryOp<UnaryOp, ArgType>, Eigen::internal::IteratorBased>".
  "/tmp/Rtmpg0aqxf/RLIBS_aba254a297/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseUnary
  Calls: test_check ... <Anonymous> -> cxxfunctionplus -> cxxfunction -> compileCode
  In addition: Warning message:
  running command '/home/ripley/R/cc/bin/R CMD SHLIB file235d3ed236ff.cpp 2> file235d3ed236ff.cpp.err.txt' had status 1 and error message 'Illegal seek' 
  testthat results ================================================================
  OK: 1047 SKIPPED: 0 FAILED: 3
  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) 
  
  Error: testthat unit tests failed
  Execution halted