Running ‘testthat.R’ [258s/362s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("BMhyb")
  Loading required package: BMhyb
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.117682960 2.118832288 0.007956494 1.000000000 0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   1.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   2.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.126567
    Scaled convergence tolerance is 2.42266
  Stepsize computed as 0.201542
  BUILD              6 29.130766 24.126567
  HI-REDUCTION       8 26.751008 24.126567
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   3.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
    sigma.sq         mu         SE         bt         vh 
  12.7360133 -0.1698449  0.1273601  1.0000000  0.1273601 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 11.798226
    Scaled convergence tolerance is 1.18982
  Stepsize computed as 1.273601
  Exiting from Nelder Mead minimizer
      6 function evaluations used
        step  negloglik   sigma.sq         mu         SE         bt         vh 
   1.0000000 10.8426637 12.7360133 -0.1698449  0.1273601  2.2736013  0.1273601 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 10.842664
    Scaled convergence tolerance is 1.09427
  Stepsize computed as 1.273601
  Exiting from Nelder Mead minimizer
      6 function evaluations used
  [1] "New improvement found, resetting step counter"
        step  negloglik   sigma.sq         mu         SE         bt         vh 
   2.0000000 10.4584010 12.7360133 -0.1698449  0.1273601  3.5472027  0.1273601 
    Nelder-Mead direct search function minimizer
  ── 1. Error: Simulation works (@test_condition.R#31)  ──────────────────────────
  non-finite value supplied by optim
  Backtrace:
   1. BMhyb::BMhyb(...)
   2. BMhyb:::OptimizeThoroughly(...)
   3. stats::optim(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 12 | SKIPPED: 0 | WARNINGS: 6 | FAILED: 1 ]
  1. Error: Simulation works (@test_condition.R#31) 
  
  Error: testthat unit tests failed
  Execution halted