Running ‘testthat.R’ [243s/361s]
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  : ✔
  → loga   : ✔
  → linear : ✔
  
   Now attempting to fit the 20 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → power    : ✔
  → powerR   : ✔
  → epm1     : ✔
  → epm2     : ✔
  → p1       : ✔
  → p2       : ✔
  → loga     : ✔
  → koba     : ✔
  → mmf      : ✔
  → monod    : ✔
  → negexpo  : ✔
  → chapman  : Warning: could not compute parameters statistics
  → weibull3 : ✔
  → asymp    : ✔
  → ratio    : ✔
  → gompertz : ✔
  → weibull4 : ✔
  → betap    : ✔
  → heleg    : ✔
  → linear   : ✔
  
  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 : ✔
  → power  : ✔
  - running grid optim: 
  
   Now attempting to fit the 5 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → linear   : ✔
  - running grid optim: 
  → power    : ✔
  - running grid optim: 
  → powerR   : ✔
  - running grid optim: 
  → chapman  : Warning: could not compute parameters statistics
  - running grid optim: 
  → gompertz : ✔
  
  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    : ✔
  → powerR   : ✔
  → epm1     : ✔
  → epm2     : ✔
  → p1       : ✔
  → p2       : ✔
  → loga     : ✔
  → koba     : ✔
  → mmf      : ✔
  → monod    : ✔
  → negexpo  : ✔
  → chapman  : Warning: could not compute parameters statistics
  → weibull3 : ✔
  → asymp    : ✔
  → ratio    : ✔
  → gompertz : ✔
  → weibull4 : ✔
  → betap    : ✔
  → heleg    : ✔
  → linear   : ✔
  
  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  : ✔
  → p1     : ✔
  → loga   : ✔
  → monod  : ✔
  → linear : ✔
  
  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 : ✔
  → koba  : ✔
  → ratio : ✔
  
   Now attempting to fit the 20 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → power    : ✔
  → powerR   : ✔
  → epm1     : ✔
  → epm2     : ✔
  → p1       : ✔
  → p2       : ✔
  → loga     : ✔
  → koba     : ✔
  → mmf      : ✔
  → monod    : ✔
  → negexpo  : ✔
  → chapman  : Warning: could not compute parameters statistics
  → weibull3 : ✔
  → asymp    : ✔
  → ratio    : ✔
  → gompertz : ✔
  → weibull4 : ✔
  → betap    : ✔
  → heleg    : Warning: could not compute parameters statistics
  → linear   : ✔
  
  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    : ✔
  → powerR   : ✔
  → epm1     : ✔
  → epm2     : ✔
  → p1       : ✔
  → p2       : ✔
  → loga     : ✔
  → koba     : ✔
  → mmf      : ✔
  → monod    : ✔
  → negexpo  : ✔
  → chapman  : Warning: could not compute parameters statistics
  → weibull3 : ✔
  → asymp    : ✔
  → ratio    : ✔
  → gompertz : ✔
  → weibull4 : ✔
  → betap    : ✔
  → heleg    : ✔
  → linear   : ✔
  
  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