Running ‘testthat.R’ [69s/105s]
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/RtmpVGaWo4/RLIBS_707656e236f9/BH/include/boost/config.hpp:39:0,
                   from /tmp/RtmpVGaWo4/RLIBS_707656e236f9/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 file505776f5965.cpp:8:
  /tmp/RtmpVGaWo4/RLIBS_707656e236f9/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 /usr/include/sys/ucontext.h:20:0,
                   from /usr/include/sys/signal.h:231,
                   from /usr/include/sys/procset.h:23,
                   from /usr/include/sys/wait.h:25,
                   from /usr/include/stdlib.h:21,
                   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 file505776f5965.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:97:24: error: expected nested-name-specifier before numeric constant
       template <typename FS, typename F, typename T0, typename T1>
                          ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:97:24: error: expected ‘>’ before numeric constant
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:100:7: error: expected unqualified-id before numeric constant
         FS fs_;
         ^
  In file included from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_solver.hpp:4:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:55,
                   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 file505776f5965.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:106:28: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
         hybrj_functor_solver(const FS& fs,
                              ^
  In file included from /usr/include/sys/ucontext.h:20:0,
                   from /usr/include/sys/signal.h:231,
                   from /usr/include/sys/procset.h:23,
                   from /usr/include/sys/wait.h:25,
                   from /usr/include/stdlib.h:21,
                   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 file505776f5965.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:106:34: error: expected ‘,’ or ‘...’ before numeric constant
         hybrj_functor_solver(const FS& fs,
                                    ^
  In file included from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_solver.hpp:4:0,
                   from /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat.hpp:55,
                   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 file505776f5965.cpp:8:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp: In constructor ‘stan::math::hybrj_functor_solver<<anonymous> >::hybrj_functor_solver(int)’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:11: error: class ‘stan::math::hybrj_functor_solver<<anonymous> >’ does not have any field named ‘fs_’
           : fs_(f, x, y, dat, dat_int, msgs),
             ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:15: error: ‘f’ was not declared in this scope
           : fs_(f, x, y, dat, dat_int, msgs),
                 ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:18: error: ‘x’ was not declared in this scope
           : fs_(f, x, y, dat, dat_int, msgs),
                    ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:21: error: ‘y’ was not declared in this scope
           : fs_(f, x, y, dat, dat_int, msgs),
                       ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:24: error: ‘dat’ was not declared in this scope
           : fs_(f, x, y, dat, dat_int, msgs),
                          ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:29: error: ‘dat_int’ was not declared in this scope
           : fs_(f, x, y, dat, dat_int, msgs),
                               ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:113:38: error: ‘msgs’ was not declared in this scope
           : fs_(f, x, y, dat, dat_int, msgs),
                                        ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp: In member function ‘int stan::math::hybrj_functor_solver<<anonymous> >::operator()(const VectorXd&, Eigen::VectorXd&)’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:124:18: error: ‘fs_’ was not declared in this scope
           jacobian(fs_, iv, fvec, J_);
                    ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp: In member function ‘Eigen::MatrixXd stan::math::hybrj_functor_solver<<anonymous> >::get_jacobian(const VectorXd&)’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:147:18: error: ‘fs_’ was not declared in this scope
           jacobian(fs_, iv, fvec, J_);
                    ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp: In member function ‘Eigen::VectorXd stan::math::hybrj_functor_solver<<anonymous> >::get_value(const VectorXd&) const’:
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:158:22: error: there are no arguments to ‘fs_’ that depend on a template parameter, so a declaration of ‘fs_’ must be available [-fpermissive]
           return fs_(iv);
                        ^
  /home/ripley/R/Lib32/StanHeaders/include/stan/math/rev/mat/functor/algebra_system.hpp:158:22: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
  In file included from /usr/include/sys/ucontext.h:20:0,
                   from /usr/includ
  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: 58 SKIPPED: 8 FAILED: 1
  1. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56) 
  
  Error: testthat unit tests failed
  Execution halted