Running 'testthat.R' [368s]
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.154009
    Scaled convergence tolerance is 2.4254
  Stepsize computed as 0.226160
  BUILD              6 29.872250 24.154009
  HI-REDUCTION       8 27.284360 24.154009
  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.253150656 2.650313661 0.002531507 1.000000000 0.002531507 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 2.929731
    Scaled convergence tolerance is 0.302973
  Stepsize computed as 0.265031
  BUILD              6 3.671646 1.920679
  HI-REDUCTION       8 3.301506 1.920679
  HI-REDUCTION      10 3.169945 1.920679
  HI-REDUCTION      12 3.057715 1.920679
  HI-REDUCTION      14 2.986452 1.920679
  HI-REDUCTION      16 2.969686 1.920679
  LO-REDUCTION      18 2.929731 1.920679
  LO-REDUCTION      20 2.875952 1.920679
  HI-REDUCTION      22 2.803114 1.920679
  LO-REDUCTION      24 2.798285 1.920679
  HI-REDUCTION      26 2.699387 1.920679
  LO-REDUCTION      28 2.643567 1.920679
  LO-REDUCTION      30 2.597858 1.920679
  LO-REDUCTION      32 2.594325 1.920679
  REFLECTION        34 2.303098 1.853560
  HI-REDUCTION      36 2.161473 1.853560
  Exiting from Nelder Mead minimizer
      38 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  1.000000000 1.853559909 0.155484002 2.558316665 0.003712911 1.405413668 
           vh 
  0.018055598 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.853560
    Scaled convergence tolerance is 0.195356
  Stepsize computed as 0.255832
  BUILD              6 3.123631 1.853560
  HI-REDUCTION       8 3.027875 1.853560
  HI-REDUCTION      10 2.565893 1.853560
  HI-REDUCTION      12 2.527117 1.853560
  LO-REDUCTION      14 2.446486 1.853560
  HI-REDUCTION      16 2.228027 1.853560
  HI-REDUCTION      18 2.212705 1.853560
  HI-REDUCTION      20 2.173465 1.853560
  HI-REDUCTION      22 2.071510 1.853560
  LO-REDUCTION      24 2.052657 1.820173
  HI-REDUCTION      26 2.025776 1.820173
  HI-REDUCTION      28 2.024114 1.820173
  Exiting from Nelder Mead minimizer
      30 function evaluations used
  [1] "New improvement found, resetting step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
  2.000000000 1.820173189 0.187109587 2.610354036 0.009520212 1.487693923 
           vh 
  0.019856497 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 2.009371
    Scaled convergence tolerance is 0.210937
  Stepsize computed as 0.232709
  BUILD              6 2.980103 1.654445
  HI-REDUCTION       8 2.718316 1.654445
  HI-REDUCTION      10 2.413156 1.654445
  HI-REDUCTION      12 2.272926 1.654445
  HI-REDUCTION      14 2.245655 1.654445
  HI-REDUCTION      16 2.091050 1.654445
  HI-REDUCTION      18 2.031656 1.654445
  HI-REDUCTION      20 2.025474 1.654445
  HI-REDUCTION      22 2.009371 1.654445
  LO-REDUCTION      24 1.904749 1.654445
  REFLECTION        26 1.901059 1.555197
  HI-REDUCTION      28 1.864966 1.555197
  LO-REDUCTION      30 1.863092 1.555197
  LO-REDUCTION      32 1.791209 1.555197
  HI-REDUCTION      34 1.772628 1.555197
  Exiting from Nelder Mead minimizer
      36 function evaluations used
  [1] "New improvement found, resetting step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
  3.000000000 1.551205926 0.163625786 2.402773171 0.004891300 1.624556842 
           vh 
  0.004864678 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.747170
    Scaled convergence tolerance is 0.184717
  Stepsize computed as 0.231768
  BUILD              6 2.946800 1.658646
  HI-REDUCTION       8 2.601600 1.658646
  HI-REDUCTION      10 2.382618 1.658646
  HI-REDUCTION      12 2.202205 1.658646
  HI-REDUCTION      14 2.178451 1.658646
  HI-REDUCTION      16 2.054691 1.658646
  HI-REDUCTION      18 1.967221 1.658646
  HI-REDUCTION      20 1.963635 1.658646
  HI-REDUCTION      22 1.855529 1.658646
  Exiting from Nelder Mead minimizer
      24 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  4.000000000 1.551205926 0.163625786 2.402773171 0.004891300 1.624556842 
           vh 
  0.004864678 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.883714
    Scaled convergence tolerance is 0.198371
  Stepsize computed as 0.228205
  BUILD              6 2.969161 1.677520
  HI-REDUCTION       8 2.631780 1.677520
  HI-REDUCTION      10 2.407841 1.677520
  HI-REDUCTION      12 2.256813 1.677520
  HI-REDUCTION      14 2.209729 1.677520
  HI-REDUCTION      16 2.086587 1.677520
  HI-REDUCTION      18 2.013425 1.677520
  HI-REDUCTION      20 2.002889 1.677520
  HI-REDUCTION      22 1.892903 1.677520
  HI-REDUCTION      24 1.883714 1.677520
  Exiting from Nelder Mead minimizer
      26 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  5.000000000 1.551205926 0.163625786 2.402773171 0.004891300 1.624556842 
           vh 
  0.004864678 
  [1] "100 of 100 done"
  -- 1. Failure: Simulation works (@test_condition.R#33)  ------------------------
  result$best$NegLogLik is not more than 2. Difference: -0.449
  
  == 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