Running 'testthat.R' [471s]
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 = 23.722708
    Scaled convergence tolerance is 2.38227
  Stepsize computed as 0.201730
  BUILD              6 28.933362 23.722708
  HI-REDUCTION       8 26.482933 23.722708
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   3.000000000 23.722707939  0.116525795  2.017295631  0.007744216  0.906558863 
            vh 
   0.007193008 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.633748
    Scaled convergence tolerance is 2.37337
  Stepsize computed as 0.206077
  BUILD              6 28.998583 23.633748
  HI-REDUCTION       8 26.490988 23.633748
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   4.000000000 23.633748091  0.116163323  2.060767495  0.007143345  0.881031926 
            vh 
   0.007110688 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.652664
    Scaled convergence tolerance is 2.37527
  Stepsize computed as 0.225610
  BUILD              6 29.344862 23.652664
  HI-REDUCTION       8 26.647133 23.652664
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   5.000000000 23.633748091  0.116163323  2.060767495  0.007143345  0.881031926 
            vh 
   0.007110688 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.725032
    Scaled convergence tolerance is 2.3825
  Stepsize computed as 0.231275
  BUILD              6 29.611891 23.725032
  HI-REDUCTION       8 26.887891 23.725032
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   6.000000000 23.633748091  0.116163323  2.060767495  0.007143345  0.881031926 
            vh 
   0.007110688 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
   6.20050559 -0.53725095  0.06200506  1.00000000  0.06200506 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 9.788977
    Scaled convergence tolerance is 0.988898
  Stepsize computed as 0.620051
  Exiting from Nelder Mead minimizer
      6 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
   1.00000000  9.68843741  6.20050559 -0.53725095  0.06200506  1.00000000 
           vh 
   0.68205562 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 9.688437
    Scaled convergence tolerance is 0.978844
  Stepsize computed as 0.620051
  Exiting from Nelder Mead minimizer
      6 function evaluations used
  [1] "New improvement found, resetting step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
   2.00000000  9.63853667  6.20050559 -0.53725095  0.06200506  1.00000000 
           vh 
   1.30210617 
    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: 11 | FAILED: 1 ]
  1. Error: Simulation works (@test_condition.R#31) 
  
  Error: testthat unit tests failed
  Execution halted