Running 'testthat.R' [401s]
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.194229
    Scaled convergence tolerance is 2.42942
  Stepsize computed as 0.216898
  BUILD              6 29.777097 24.194229
  HI-REDUCTION       8 27.280854 24.194229
  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 
  0.144806197 1.629181191 0.001448062 1.000000000 0.001448062 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 2.467716
    Scaled convergence tolerance is 0.256772
  Stepsize computed as 0.162918
  BUILD              6 2.616809 1.870326
  LO-REDUCTION       8 2.561807 1.870326
  HI-REDUCTION      10 2.467716 1.870326
  LO-REDUCTION      12 2.438490 1.870326
  LO-REDUCTION      14 2.246918 1.870326
  HI-REDUCTION      16 2.225088 1.870326
  REFLECTION        18 2.200867 1.803383
  HI-REDUCTION      20 2.082495 1.803383
  Exiting from Nelder Mead minimizer
      22 function evaluations used
        step  negloglik   sigma.sq         mu         SE         bt         vh 
  1.00000000 1.80338316 0.05639770 1.59701464 0.03221743 1.08363304 0.08508110 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.803383
    Scaled convergence tolerance is 0.190338
  Stepsize computed as 0.159701
  BUILD              6 2.480408 1.803383
  HI-REDUCTION       8 2.185982 1.803383
  HI-REDUCTION      10 2.183712 1.803383
  HI-REDUCTION      12 2.127496 1.803383
  HI-REDUCTION      14 2.119991 1.803383
  Exiting from Nelder Mead minimizer
      16 function evaluations used
        step  negloglik   sigma.sq         mu         SE         bt         vh 
  2.00000000 1.80338316 0.05639770 1.59701464 0.03221743 1.08363304 0.08508110 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.831460
    Scaled convergence tolerance is 0.193146
  Stepsize computed as 0.163147
  BUILD              6 2.514574 1.831460
  HI-REDUCTION       8 2.327490 1.831460
  LO-REDUCTION      10 2.255567 1.831460
  HI-REDUCTION      12 2.161630 1.831460
  HI-REDUCTION      14 2.127982 1.831460
  HI-REDUCTION      16 2.063476 1.831460
  LO-REDUCTION      18 2.046403 1.831460
  Exiting from Nelder Mead minimizer
      20 function evaluations used
        step  negloglik   sigma.sq         mu         SE         bt         vh 
  3.00000000 1.80338316 0.05639770 1.59701464 0.03221743 1.08363304 0.08508110 
  [1] "100 of 100 done"
  -- 1. Failure: Simulation works (@test_condition.R#33)  ------------------------
  result$best$NegLogLik is not more than 2. Difference: -0.197
  
  == testthat results  ===========================================================
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 9 | FAILED: 1 ]
  1. Failure: Simulation works (@test_condition.R#33) 
  
  Error: testthat unit tests failed
  Execution halted