Running ‘testthat.R’ [73s/75s]
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/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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 file88f2caa22f5.cpp:8:
  /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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 file88f2caa22f5.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/Rtmpgqayvd/RLIBS_6abdf842fe/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 file88f2caa22f5.cpp:8:
  /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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 file88f2caa22f5.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/Rtmpgqayvd/RLIBS_6abdf842fe/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 file88f2caa22f5.cpp:8:
  /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:43,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast/try_lexical_convert.hpp:42,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/lexical_cast.hpp:32,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/BH/include/boost/math/tools/convert_from_string.hpp:15,
                   from /tmp/Rtmpgqayvd/RLIBS_6abdf842fe/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 file88f2caa22f5.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/Rtmpgqayvd/RLIBS_6abdf842fe/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,
              
  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: 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: 65 SKIPPED: 13 FAILED: 1
  1. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56) 
  
  Error: testthat unit tests failed
  Execution halted