Running 'testthat.R' [347s/392s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sars)
  > 
  > test_check("sars")
  
   Now attempting to fit the 3 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power  : v
  > loga   : v
  > linear : v
  
   Now attempting to fit the 20 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power    : v
  > powerR   : v
  > epm1     : v
  > epm2     : v
  > p1       : v
  > p2       : v
  > loga     : v
  > koba     : v
  > mmf      : v
  > monod    : v
  > negexpo  : v
  > chapman  : Warning: could not compute parameters statistics
  > weibull3 : v
  > asymp    : v
  > ratio    : v
  > gompertz : v
  > weibull4 : v
  > betap    : v
  > heleg    : v
  > linear   : v
  
  Model fitting completed - all models succesfully fitted.  Now undertaking model validation checks.
  Additional models  will be excluded if necessary:
  16 remaining models used to construct the multi  SAR:
   Power, PowerR, Extended Power model 2, Persistence function 1, Persistence function 2, Logarithmic, Kobayashi, MMF, Monod, Negative exponential, Chapman Richards, Cumulative Weibull 3 par., Rational function, Gompertz, Beta-P cumulative, Heleg(Logistic) 
  --------------------------------------------------------------------------------
  
   Now attempting to fit the 2 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > linear : v
  > power  : v
  - running grid optim: 
  
   Now attempting to fit the 5 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > linear   : v
  - running grid optim: 
  > power    : v
  - running grid optim: 
  > powerR   : v
  - running grid optim: 
  > chapman  : Warning: could not compute parameters statistics
  - running grid optim: 
  > gompertz : v
  
  Model fitting completed - all models succesfully fitted.  Now undertaking model validation checks.
  Additional models  will be excluded if necessary:
  
  All models passed the model  validation checks
  
  5 remaining models used to construct the multi  SAR:
   Linear model, Power, PowerR, Chapman Richards, Gompertz 
  --------------------------------------------------------------------------------
  
   Now attempting to fit the 20 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power    : v
  > powerR   : v
  > epm1     : v
  > epm2     : v
  > p1       : v
  > p2       : v
  > loga     : v
  > koba     : v
  > mmf      : v
  > monod    : v
  > negexpo  : v
  > chapman  : Warning: could not compute parameters statistics
  > weibull3 : v
  > asymp    : v
  > ratio    : v
  > gompertz : v
  > weibull4 : v
  > betap    : v
  > heleg    : v
  > linear   : v
  
  All models passed the model  validation checks
  
  20 remaining models used to construct the multi  SAR:
   Power, PowerR, Extended Power model 1, Extended Power model 2, Persistence function 1, Persistence function 2, Logarithmic, Kobayashi, MMF, Monod, Negative exponential, Chapman Richards, Cumulative Weibull 3 par., Asymptotic regression, Rational function, Gompertz, Cumulative Weibull 4 par., Beta-P cumulative, Heleg(Logistic), Linear model 
  --------------------------------------------------------------------------------
  
   Now attempting to fit the 5 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power  : v
  > p1     : v
  > loga   : v
  > monod  : v
  > linear : v
  
  Now undertaking model validation checks. Additional models  will
  be excluded if necessary
  4 remaining models used to construct the multi  SAR:
   Power, Persistence function 1, Logarithmic, Monod 
  --------------------------------------------------------------------------------
  
  Now undertaking model validation checks. Additional models  will
  be excluded if necessary
  4 remaining models used to construct the multi  SAR:
   Power, Persistence function 1, Logarithmic, Monod 
  --------------------------------------------------------------------------------
  -- Skip (test_multi.R:34:3): confidence intervals are correct ------------------
  Reason: On CRAN
  
  -- Skip (test_multi.R:46:3): confidence intervals works with AICc --------------
  Reason: On CRAN
  
  
   Now attempting to fit the 3 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power : v
  > koba  : v
  > ratio : v
  
   Now attempting to fit the 20 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power    : v
  > powerR   : v
  > epm1     : v
  > epm2     : v
  > p1       : v
  > p2       : v
  > loga     : v
  > koba     : v
  > mmf      : v
  > monod    : v
  > negexpo  : v
  > chapman  : Warning: could not compute parameters statistics
  > weibull3 : v
  > asymp    : v
  > ratio    : v
  > gompertz : v
  > weibull4 : v
  > betap    : v
  > heleg    : Warning: could not compute parameters statistics
  > linear   : v
  
  Model fitting completed - all models succesfully fitted.  Now undertaking model validation checks.
  Additional models  will be excluded if necessary:
  16 remaining models used to construct the multi  SAR:
   PowerR, Extended Power model 1, Extended Power model 2, Persistence function 1, Persistence function 2, Kobayashi, MMF, Monod, Negative exponential, Chapman Richards, Cumulative Weibull 3 par., Asymptotic regression, Rational function, Cumulative Weibull 4 par., Beta-P cumulative, Linear model 
  --------------------------------------------------------------------------------
  
   Now attempting to fit the 20 SAR models: 
  
  --  multi_sars ---------------------------------------------- multi-model SAR --
  > power    : v
  > powerR   : v
  > epm1     : v
  > epm2     : v
  > p1       : v
  > p2       : v
  > loga     : v
  > koba     : v
  > mmf      : v
  > monod    : v
  > negexpo  : v
  > chapman  : Warning: could not compute parameters statistics
  > weibull3 : v
  > asymp    : v
  > ratio    : v
  > gompertz : v
  > weibull4 : v
  > betap    : v
  > heleg    : v
  > linear   : v
  
  Model fitting completed - all models succesfully fitted.  Now undertaking model validation checks.
  Additional models  will be excluded if necessary:
  16 remaining models used to construct the multi  SAR:
   Power, PowerR, Extended Power model 2, Persistence function 1, Persistence function 2, Logarithmic, Kobayashi, MMF, Monod, Negative exponential, Chapman Richards, Cumulative Weibull 3 par., Rational function, Gompertz, Beta-P cumulative, Heleg(Logistic) 
  --------------------------------------------------------------------------------
  -- FAILURE (test_thresholds.R:34:3): sar_threshold returns correct results -----
  c(s4$Model_table$AIC) not equal to c(...).
  6/8 mismatches (average diff: 5.57)
  [1] 2019 - 2020 ==  -0.77
  [2] 2020 - 2019 ==   0.94
  [3] 2020 - 2020 ==  -0.17
  [4] 2062 - 2046 ==  15.76
  [5] 2046 - 2048 ==  -1.84
  [6] 2048 - 2062 == -13.92
  
  -- FAILURE (test_thresholds.R:43:3): sar_threshold returns correct results -----
  c(s5$Model_table$AIC) not equal to c(...).
  6/8 mismatches (average diff: 5.57)
  [1] 2019 - 2020 ==  -0.77
  [2] 2020 - 2019 ==   0.94
  [3] 2020 - 2020 ==  -0.17
  [4] 2062 - 2046 ==  15.76
  [5] 2046 - 2048 ==  -1.84
  [6] 2048 - 2062 == -13.92
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (2)
  
  == testthat results  ===========================================================
  FAILURE (test_thresholds.R:34:3): sar_threshold returns correct results
  FAILURE (test_thresholds.R:43:3): sar_threshold returns correct results
  
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 154 ]
  Error: Test failures
  Execution halted