Running 'testthat.R' [203s]
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 D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config.hpp:39:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/tools/config.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: "BOOST_NO_CXX11_RVALUE_REFERENCES" redefined
   #  define BOOST_NO_CXX11_RVALUE_REFERENCES
   ^
  <command-line>:0:0: note: this is the location of the previous definition
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:56:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
     bool is_uninitialized() { return (vi_ == static_cast<vari*>(nullptr)); }
     ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_multiply.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:162,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_action_handler.hpp:20:3: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat]
     static constexpr int p_max = 8;
     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/thread:35:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect_concurrent.hpp:10,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:262,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support for the \
    ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr.hpp:43,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:325,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/quadrature/tanh_sinh.hpp:47:5: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
       auto integrate(const F f, Real a, Real b, Real tolerance = tools::root_epsilon<Real>(), Real* error = nullptr, Real* L1 = nullptr, std::size_t* levels = nullptr) ->decltype(Real(std::declval<F>()(std::declval<Real>()))) const;
       ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp: In destructor 'stan::math::stack_alloc::~stack_alloc()':
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
       for (auto& block : blocks_)
            ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:24: error: range-based 'for' loops are not allowed in C++98 mode
       for (auto& block : blocks_)
                          ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:147:19: error: invalid conversion from 'int' to 'void*' [-fpermissive]
           free(block);
                     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:8,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/stdlib.h:438:16: note: initializing argument 1 of 'void free(void*)'
     void __cdecl free(void *_Memory);
                  ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec48c2937.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp: 
  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! In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config.hpp:39:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/tools/config.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: "BOOST_NO_CXX11_RVALUE_REFERENCES" redefined
   #  define BOOST_NO_CXX11_RVALUE_REFERENCES
   ^
  <command-line>:0:0: note: this is the location of the previous definition
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:56:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
     bool is_uninitialized() { return (vi_ == static_cast<vari*>(nullptr)); }
     ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_multiply.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:162,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_action_handler.hpp:20:3: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat]
     static constexpr int p_max = 8;
     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/thread:35:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect_concurrent.hpp:10,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:262,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support for the \
    ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr.hpp:43,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:325,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/quadrature/tanh_sinh.hpp:47:5: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
       auto integrate(const F f, Real a, Real b, Real tolerance = tools::root_epsilon<Real>(), Real* error = nullptr, Real* L1 = nullptr, std::size_t* levels = nullptr) ->decltype(Real(std::declval<F>()(std::declval<Real>()))) const;
       ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp: In destructor 'stan::math::stack_alloc::~stack_alloc()':
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
       for (auto& block : blocks_)
            ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:24: error: range-based 'for' loops are not allowed in C++98 mode
       for (auto& block : blocks_)
                          ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:147:19: error: invalid conversion from 'int' to 'void*' [-fpermissive]
           free(block);
                     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:8,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/stdlib.h:438:16: note: initializing argument 1 of 'void free(void*)'
     void __cdecl free(void *_Memory);
                  ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec2801ca1.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp: 
  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! In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config.hpp:39:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/tools/config.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: "BOOST_NO_CXX11_RVALUE_REFERENCES" redefined
   #  define BOOST_NO_CXX11_RVALUE_REFERENCES
   ^
  <command-line>:0:0: note: this is the location of the previous definition
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:56:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
     bool is_uninitialized() { return (vi_ == static_cast<vari*>(nullptr)); }
     ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_multiply.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:162,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_action_handler.hpp:20:3: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat]
     static constexpr int p_max = 8;
     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/thread:35:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect_concurrent.hpp:10,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:262,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support for the \
    ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr.hpp:43,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:325,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/quadrature/tanh_sinh.hpp:47:5: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
       auto integrate(const F f, Real a, Real b, Real tolerance = tools::root_epsilon<Real>(), Real* error = nullptr, Real* L1 = nullptr, std::size_t* levels = nullptr) ->decltype(Real(std::declval<F>()(std::declval<Real>()))) const;
       ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp: In destructor 'stan::math::stack_alloc::~stack_alloc()':
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
       for (auto& block : blocks_)
            ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:24: error: range-based 'for' loops are not allowed in C++98 mode
       for (auto& block : blocks_)
                          ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:147:19: error: invalid conversion from 'int' to 'void*' [-fpermissive]
           free(block);
                     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:8,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/stdlib.h:438:16: note: initializing argument 1 of 'void free(void*)'
     void __cdecl free(void *_Memory);
                  ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec533c27e.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp: 
  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! In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config.hpp:39:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/tools/config.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: "BOOST_NO_CXX11_RVALUE_REFERENCES" redefined
   #  define BOOST_NO_CXX11_RVALUE_REFERENCES
   ^
  <command-line>:0:0: note: this is the location of the previous definition
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:56:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
     bool is_uninitialized() { return (vi_ == static_cast<vari*>(nullptr)); }
     ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_multiply.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:162,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_action_handler.hpp:20:3: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat]
     static constexpr int p_max = 8;
     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/thread:35:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect_concurrent.hpp:10,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:262,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support for the \
    ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr.hpp:43,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:325,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/quadrature/tanh_sinh.hpp:47:5: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
       auto integrate(const F f, Real a, Real b, Real tolerance = tools::root_epsilon<Real>(), Real* error = nullptr, Real* L1 = nullptr, std::size_t* levels = nullptr) ->decltype(Real(std::declval<F>()(std::declval<Real>()))) const;
       ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp: In destructor 'stan::math::stack_alloc::~stack_alloc()':
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
       for (auto& block : blocks_)
            ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:24: error: range-based 'for' loops are not allowed in C++98 mode
       for (auto& block : blocks_)
                          ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:147:19: error: invalid conversion from 'int' to 'void*' [-fpermissive]
           free(block);
                     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:8,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/stdlib.h:438:16: note: initializing argument 1 of 'void free(void*)'
     void __cdecl free(void *_Memory);
                  ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec95636aa.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp: 
  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! In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config.hpp:39:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/tools/config.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/config/compiler/gcc.hpp:186:0: warning: "BOOST_NO_CXX11_RVALUE_REFERENCES" redefined
   #  define BOOST_NO_CXX11_RVALUE_REFERENCES
   ^
  <command-line>:0:0: note: this is the location of the previous definition
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/var.hpp:56:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
     bool is_uninitialized() { return (vi_ == static_cast<vari*>(nullptr)); }
     ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_multiply.hpp:5:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:162,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/fun/matrix_exp_action_handler.hpp:20:3: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat]
     static constexpr int p_max = 8;
     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/thread:35:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect_concurrent.hpp:10,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat/functor/map_rect.hpp:13,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:262,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support for the \
    ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr/functor/integrate_1d.hpp:9:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/arr.hpp:43,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/prim/mat.hpp:325,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:12,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/BH/include/boost/math/quadrature/tanh_sinh.hpp:47:5: warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
       auto integrate(const F f, Real a, Real b, Real tolerance = tools::root_epsilon<Real>(), Real* error = nullptr, Real* L1 = nullptr, std::size_t* levels = nullptr) ->decltype(Real(std::declval<F>()(std::declval<Real>()))) const;
       ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp: In destructor 'stan::math::stack_alloc::~stack_alloc()':
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:10: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
       for (auto& block : blocks_)
            ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:24: error: range-based 'for' loops are not allowed in C++98 mode
       for (auto& block : blocks_)
                          ^
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:147:19: error: invalid conversion from 'int' to 'void*' [-fpermissive]
           free(block);
                     ^
  In file included from D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/memory/stack_alloc.hpp:8,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/Compiler/gcc-4.9.3/mingw_64/x86_64-w64-mingw32/include/stdlib.h:438:16: note: initializing argument 1 of 'void free(void*)'
     void __cdecl free(void *_Memory);
                  ^
  In file included from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core.hpp:4:0,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/mat.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math.hpp:4,
                   from D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/src/stan/model/model_header.hpp:4,
                   from file285ec42865bbb.cpp:8:
  D:/temp/RtmpuMOzTt/RLIBS_11bd0291e6bc6/StanHeaders/include/stan/math/rev/core/autodiffstackstora
  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: 1072 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