Running ‘testthat.R’ [440s/513s]
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.551983
    Scaled convergence tolerance is 2.4652
  Stepsize computed as 0.212826
  BUILD              6 29.715912 24.551983
  HI-REDUCTION       8 27.305537 24.551983
  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 
   2.85975612 -0.03750279  0.02859756  1.00000000  0.02859756 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 8.075830
    Scaled convergence tolerance is 0.817583
  Stepsize computed as 0.285976
  Exiting from Nelder Mead minimizer
      6 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
   1.00000000  7.80853722  2.85975612 -0.03750279  0.31457317  1.00000000 
           vh 
   0.02859756 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 7.808537
    Scaled convergence tolerance is 0.790854
  Stepsize computed as 0.285976
  Exiting from Nelder Mead minimizer
      6 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
   2.00000000  7.80853722  2.85975612 -0.03750279  0.31457317  1.00000000 
           vh 
   0.02859756 
    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