Running ‘testthat.R’ [67s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(psqn)
  > 
  > test_check("psqn")
  ── FAILURE (test-R-api.R:65:3): mixed logit model gives the same ───────────────
  opt[do_check] not equal to opt_res[do_check].
  Component "par": Mean relative difference: 0.1850827
  Component "value": Mean relative difference: 0.02025723
  
  ── FAILURE (test-R-api.R:85:3): mixed logit model gives the same ───────────────
  opt[do_check] not equal to opt_res[do_check].
  Component "par": Mean relative difference: 0.3498463
  Component "value": Mean relative difference: 0.1408613
  
  "/home/ripley/R/Lib32/psqn/include/intrapolate.h", line 28: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 342: Warning: Deducing non-void lambda return type 'unsigned' from lambda without a single return statement.
  "mlogit-ex.cpp", line 129:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<m_logit_func>&, const unsigned)".
  "mlogit-ex.cpp", line 129:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 349: Warning: Deducing non-void lambda return type 'unsigned' from lambda without a single return statement.
  "mlogit-ex.cpp", line 129:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<m_logit_func>&, const unsigned)".
  "mlogit-ex.cpp", line 129:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 355: Warning: Deducing non-void lambda return type 'std::array<unsigned, 3>' from lambda without a single return statement.
  "mlogit-ex.cpp", line 129:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<m_logit_func>&, const unsigned)".
  "mlogit-ex.cpp", line 129:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 384: Warning: Deducing non-void lambda return type 'std::vector<PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::worker>' from lambda without a single return statement.
  "mlogit-ex.cpp", line 129:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<m_logit_func>&, const unsigned)".
  "mlogit-ex.cpp", line 129:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 416: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "mlogit-ex.cpp", line 223:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::eval(const double*, double*, const bool)".
  "mlogit-ex.cpp", line 223:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 927: Warning: Deducing non-void lambda return type 'unsigned long' from lambda without a single return statement.
  "mlogit-ex.cpp", line 258:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::get_hess(double*const) const".
  "mlogit-ex.cpp", line 258:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 682: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "mlogit-ex.cpp", line 167:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 690: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "mlogit-ex.cpp", line 167:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 705: Error: Initializer for constexpr variable NaNv must be a constant expression.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "mlogit-ex.cpp", line 167:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 706: Warning: Deducing non-void lambda return type 'bool' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "mlogit-ex.cpp", line 167:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 790: Warning: out hides PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search::{lambda at psqn.h,787:30}::out.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 787:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search::{lambda at psqn.h,787:30}::operator()() const".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 787:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int).
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "mlogit-ex.cpp", line 167:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 787: Warning: Deducing non-void lambda return type 'PSQN::intrapolate' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "mlogit-ex.cpp", line 167:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 52: Error: Badly formed expression.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 52: Error: v_old is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 52: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 52: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 53: Error: gr is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 53: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 53: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 54: Error: gr_old is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 54: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 54: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 55: Error: s is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 55: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 55: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 56: Error: y is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 56: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 56: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 57: Error: wrk is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 57: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 57: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 58: Error: dir is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 58: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 58: Error: "}" expected instead of "=".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 59: Error: H is not defined.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn-bfgs.h", line 59: Error: Use ";" to terminate declarations.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: While instantiating "PSQN::optim_info PSQN::bfgs<PSQN::dummy_reporter, PSQN::dummy_interrupter>(PSQN::problem&, double*, const double, const unsigned, const double, const double, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 981:     Where: Instantiated from PSQN::optimizer<m_logit_func, PSQN::R_reporter, PSQN::R_interrupter>::optim_priv(double*, const double, const unsigned, const double, const double).
  "mlogit-ex.cpp", line 202:     Where: Instantiated from non-template code.
  Compilation aborted, too many Error messages.
  make: Fatal error: Command failed for target `mlogit-ex.o'
  Current working directory /tmp/RtmpMQaGqQ/working_dir/RtmpPla4a0/sourceCpp-i386-pc-solaris2.10-1.0.5/sourcecpp_68071eff2c9
  /home/ripley/developerstudio12.6/bin/CC -std=c++11 -library=stdcpp,CrunG3 -I"/home/ripley/R/cc/include" -DNDEBUG -I../inst/include -xopenmp  -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/RcppArmadillo/include" -I"/home/ripley/R/Lib32/psqn/include" -I"/home/ripley/R/Lib32/psqn" -I/usr/local/include -fopenmp -KPIC  -O -xlibmil -xtarget=native -xcache=generic -nofstore  -c mlogit-ex.cpp -o mlogit-ex.o
  *** Error code 2
  ── ERROR (test-cpp-api.R:36:3): mixed logit model gives the same ───────────────
  Error: Error 1 occurred building shared library.
  Backtrace:
      █
   1. └─Rcpp::sourceCpp(system.file("mlogit-ex.cpp", package = "psqn"))
  
  "/home/ripley/R/Lib32/psqn/include/intrapolate.h", line 28: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 342: Warning: Deducing non-void lambda return type 'unsigned' from lambda without a single return statement.
  "poly-ex.cpp", line 116:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<poly_func>&, const unsigned)".
  "poly-ex.cpp", line 116:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 349: Warning: Deducing non-void lambda return type 'unsigned' from lambda without a single return statement.
  "poly-ex.cpp", line 116:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<poly_func>&, const unsigned)".
  "poly-ex.cpp", line 116:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 355: Warning: Deducing non-void lambda return type 'std::array<unsigned, 3>' from lambda without a single return statement.
  "poly-ex.cpp", line 116:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<poly_func>&, const unsigned)".
  "poly-ex.cpp", line 116:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 384: Warning: Deducing non-void lambda return type 'std::vector<PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::worker>' from lambda without a single return statement.
  "poly-ex.cpp", line 116:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optimizer(std::vector<poly_func>&, const unsigned)".
  "poly-ex.cpp", line 116:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 416: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "poly-ex.cpp", line 159:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::eval(const double*, double*, const bool)".
  "poly-ex.cpp", line 159:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 682: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "poly-ex.cpp", line 137:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 690: Warning: Deducing non-void lambda return type 'double' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "poly-ex.cpp", line 137:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 705: Error: Initializer for constexpr variable NaNv must be a constant expression.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "poly-ex.cpp", line 137:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 706: Warning: Deducing non-void lambda return type 'bool' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "poly-ex.cpp", line 137:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 790: Warning: out hides PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search::{lambda at psqn.h,787:30}::out.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 787:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search::{lambda at psqn.h,787:30}::operator()() const".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 787:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int).
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "poly-ex.cpp", line 137:     Where: Instantiated from non-template code.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 787: Warning: Deducing non-void lambda return type 'PSQN::intrapolate' from lambda without a single return statement.
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: While instantiating "PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::line_search(const double, double*, double*, double*, double&, const double, const double, const bool, const int)".
  "/home/ripley/R/Lib32/psqn/include/psqn.h", line 868:     Where: Instantiated from PSQN::optimizer<poly_func, PSQN::R_reporter, PSQN::R_interrupter>::optim(double*, const double, const unsigned, const double, const double, const bool, const int, const double, const bool, const unsigned).
  "poly-ex.cpp", line 137:     Where: Instantiated from non-template code.
  1 Error(s) and 11 Warning(s) detected.
  make: Fatal error: Command failed for target `poly-ex.o'
  Current working directory /tmp/RtmpMQaGqQ/working_dir/RtmpPla4a0/sourceCpp-i386-pc-solaris2.10-1.0.5/sourcecpp_680719c727b
  /home/ripley/developerstudio12.6/bin/CC -std=c++11 -library=stdcpp,CrunG3 -I"/home/ripley/R/cc/include" -DNDEBUG -I../inst/include -xopenmp  -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/RcppArmadillo/include" -I"/home/ripley/R/Lib32/psqn/include" -I"/home/ripley/R/Lib32/psqn" -I/usr/local/include -fopenmp -KPIC  -O -xlibmil -xtarget=native -xcache=generic -nofstore  -c poly-ex.cpp -o poly-ex.o
  *** Error code 2
  ── ERROR (test-poly-ex.R:34:3): Poly example gives the same ────────────────────
  Error: Error 1 occurred building shared library.
  Backtrace:
      █
   1. └─Rcpp::sourceCpp(system.file("poly-ex.cpp", package = "psqn"))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  FAILURE (test-R-api.R:65:3): mixed logit model gives the same
  FAILURE (test-R-api.R:85:3): mixed logit model gives the same
  ERROR (test-cpp-api.R:36:3): mixed logit model gives the same
  ERROR (test-poly-ex.R:34:3): Poly example gives the same
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 8 ]
  Error: Test failures
  Execution halted