Running ‘testthat.R’ [274s/285s]
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! In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b721fb69fa.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b721fb69fa.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b721fb69fa.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b721fb69fa.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b721fb69fa.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                                 ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b721fb69fa.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check
  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: pkgbuild::with_build_tools(cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, 
         settings = settings, ..., 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")))
  
  ── 2. Error: stansim test with stansim_data object; cache FALSE, loo FALSE (@tes
  Compilation ERROR, function(s)/method(s) not created! In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b727623757.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b727623757.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b727623757.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b727623757.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b727623757.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                                 ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b727623757.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check
  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: pkgbuild::with_build_tools(cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, 
         settings = settings, ..., verbose = verbose))
  11: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  12: compileCode(f, code, language = language, verbose = verbose)
  13: 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! In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b76d01a52.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b76d01a52.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b76d01a52.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b76d01a52.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b76d01a52.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                                 ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b76d01a52.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_
  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: pkgbuild::with_build_tools(cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, 
         settings = settings, ..., verbose = verbose))
  11: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  12: compileCode(f, code, language = language, verbose = verbose)
  13: 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! In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b72dce309b.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b72dce309b.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b72dce309b.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b72dce309b.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b72dce309b.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                                 ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b72dce309b.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check
  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: pkgbuild::with_build_tools(cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, 
         settings = settings, ..., 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")))
  
  ── 5. Error: simulate_data returns correct output (@test-stansim_simulate.R#135)
  Compilation ERROR, function(s)/method(s) not created! In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b7185e4927.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b7185e4927.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b7185e4927.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                   ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b7185e4927.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:33,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b7185e4927.cpp:8:
  /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
       explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                                 ^
  In file included from /opt/csw/include/c++/5.2.0/bits/locale_conv.h:41:0,
                   from /opt/csw/include/c++/5.2.0/locale:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/math/constants/constants.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:36,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file60b7185e4927.cpp:8:
  /opt/csw/include/c++/5.2.0/bits/unique_ptr.h:49:28: note: declared here
     template<typename> class auto_ptr;
                              ^
  In file included from /tmp/Rtmpf0aagO/RLIBS_50307082bed/BH/include/boost/shared_ptr.hpp:17:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/err/check
  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: pkgbuild::with_build_tools(cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, 
         settings = settings, ..., verbose = verbose))
  11: cxxfunction(sig = sig, body = body, plugin = plugin, includes = includes, settings = settings, 
         ..., verbose = verbose)
  12: compileCode(f, code, language = language, verbose = verbose)
  13: 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