Running ‘testthat.R’ [65s/66s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > 
  > test_check("bridgesampling")
  Loading required package: bridgesampling
  Median of 10 bridge sampling estimates
  of the log marginal likelihood: 4293.156
  Range of estimates: 4290.976 to 4294.028
  Interquartile range: 1.62594
  Method: normal
  ── 1. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56)  ───────
  Compilation ERROR, function(s)/method(s) not created! In file included from /tmp/RtmpXxaWXH/RLIBS_438e79314a81/BH/include/boost/config.hpp:39:0,
                   from /tmp/RtmpXxaWXH/RLIBS_438e79314a81/BH/include/boost/math/tools/config.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:12,
                   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 file45e23ca1500f.cpp:8:
  /tmp/RtmpXxaWXH/RLIBS_438e79314a81/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 /opt/csw/include/c++/5.2.0/thread:35:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/functor/map_rect_concurrent.hpp:10,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat/functor/map_rect.hpp:13,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/prim/mat.hpp:262,
                   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 file45e23ca1500f.cpp:8:
  /opt/csw/include/c++/5.2.0/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 /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:4,
                   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 file45e23ca1500f.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp: In destructor ‘stan::math::stack_alloc::~stack_alloc()’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:16: error: ISO C++ forbids declaration of ‘block’ with no type [-fpermissive]
       for (auto& block : blocks_)
                  ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:24: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11
       for (auto& block : blocks_)
                          ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp:147:19: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
           free(block);
                     ^
  In file included from /usr/include/stdlib.h:17:0,
                   from /opt/csw/include/c++/5.2.0/cstdlib:72,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/memory/stack_alloc.hpp:8,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:4,
                   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 file45e23ca1500f.cpp:8:
  /opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/iso/stdlib_iso.h:134:13: note:   initializing argument 1 of ‘void std::free(void*)’
   extern void free(void *);
               ^
  In file included from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:4:0,
                   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 file45e23ca1500f.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp: At global scope:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:47:69: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
       AutodiffStackStorage &operator=(const AutodiffStackStorage &) = delete;
                                                                       ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:60:30: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     AutodiffStackSingleton() = delete;
                                ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:61:71: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     explicit AutodiffStackSingleton(AutodiffStackSingleton_t const &) = delete;
                                                                         ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:62:73: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     AutodiffStackSingleton &operator=(const AutodiffStackSingleton_t &) = delete;
                                                                           ^
  In file included from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:12,
                   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 file45e23ca1500f.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/var.hpp: In member function ‘bool stan::math::var::is_uninitialized()’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/var.hpp:56:63: error: ‘nullptr’ was not declared in this scope
     bool is_uninitialized() { return (vi_ == static_cast<vari*>(nullptr)); }
                                                                 ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/var.hpp: In function ‘std::ostream& stan::math::operator<<(std::ostream&, const stan::math::var&)’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/var.hpp:473:18: error: ‘nullptr’ was not declared in this scope
       if (v.vi_ == nullptr)
                    ^
  In file included from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core.hpp:42:0,
                   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 file45e23ca1500f.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/recover_memory.hpp: In function ‘void stan::math::recover_memory()’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/recover_memory.hpp:25:14: error: ISO C++ forbids declaration of ‘x’ with no type [-fpermissive]
     for (auto &x : ChainableStack::instance().var_alloc_stack_) {
                ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/core/recover_memory.hpp:25:18: warning: ran
  1: capture.output(suppressMessages(stanmodelH0 <- stan_model(model_code = stancodeH0, 
         model_name = "stanmodel"))) at testthat/test-stan_bridge_sampler_basic.R:56
  2: evalVis(expr)
  3: withVisible(eval(expr, pf))
  4: eval(expr, pf)
  5: eval(expr, pf)
  6: suppressMessages(stanmodelH0 <- stan_model(model_code = stancodeH0, model_name = "stanmodel"))
  7: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  8: stan_model(model_code = stancodeH0, model_name = "stanmodel")
  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: 66 SKIPPED: 12 FAILED: 1
  1. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56) 
  
  Error: testthat unit tests failed
  Execution halted