Running ‘testthat.R’ [44s/52s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sars)
  > 
  > test_check("sars")
  
   Now attempting to fit the 20 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → power    : ✔
  → powerR   : ✔
  → epm1     : ✔
  → epm2     : ✔
  → p1       : ✔
  → p2       : ✔
  → loga     : ✔
  → koba     : ✔
  → monod    : ✔
  → negexpo  : ✔
  → chapman  : ✔
  → weibull3 : ✔
  → asymp    : ✔
  → ratio    : ✔
  → gompertz : ✔
  → weibull4 : ✔
  → betap    : ✔
  → logistic : ✔
  → 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, Monod, Negative exponential, Chapman Richards, Cumulative Weibull 3 par., Rational function, Gompertz, Beta-P cumulative, Logistic(Standard), Heleg(Logistic) 
  ────────────────────────────────────────────────────────────────────────────────
  
   Now attempting to fit the 20 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → power    : ✔
  → powerR   : ✔
  → epm1     : ✔
  → epm2     : ✔
  → p1       : ✔
  → p2       : ✔
  → loga     : ✔
  → koba     : ✔
  → monod    : ✔
  → negexpo  : ✔
  → chapman  : Warning: could not compute parameters statistics
  → weibull3 : ✔
  → asymp    : ✔
  → ratio    : Warning: could not compute parameters statistics
  → gompertz : ✔
  → weibull4 : Warning: could not compute parameters statistics
  → betap    : Warning: could not compute parameters statistics
  → logistic : ✔
  → heleg    : ✔
  → linear   : ✔
  
  No model validation checks selected
  
  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, Monod, Negative exponential, Chapman Richards, Cumulative Weibull 3 par., Asymptotic regression, Rational function, Gompertz, Cumulative Weibull 4 par., Beta-P cumulative, Logistic(Standard), Heleg(Logistic), Linear model 
  ────────────────────────────────────────────────────────────────────────────────
  
   Now attempting to fit the 2 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → linear : ✔
  → power  : ✔
  
   Now attempting to fit the 3 SAR models: 
  
  ──  multi_sars ────────────────────────────────────────────── multi-model SAR ──
  → power : ✔
  → koba  : ✔
  → ratio : ✔
  [ FAIL 2 | WARN 0 | SKIP 20 | PASS 147 ]
  
  ══ Skipped tests (20) ══════════════════════════════════════════════════════════
  • On CRAN (20): 'test_crit_method.R:5:3', 'test_crit_method.R:96:3',
    'test_grid_start.R:4:3', 'test_indiv_CIs.R:5:3', 'test_logistic.R:5:3',
    'test_multi.R:4:3', 'test_multi.R:30:3', 'test_multi.R:45:3',
    'test_multi.R:76:3', 'test_multi.R:89:3', 'test_p2.R:4:3',
    'test_pred.R:27:3', 'test_shape.R:4:3', 'test_thresholds.R:5:3',
    'test_thresholds.R:72:3', 'test_thresholds.R:94:3',
    'test_thresholds.R:133:3', 'test_warnings.R:5:3', 'test_weibull3.R:4:3',
    'test_weibull3.R:15:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_lin_pow.R:37:3'): lin_pow returns warning for all identical species ──
  Error in `grepl(as.character(pattern), x, ignore.case, FALSE, perl, fixed, 
      useBytes, FALSE)`: NA in coercion to Rboolean
  Backtrace:
      ▆
   1. └─testthat::expect_warning(...) at test_lin_pow.R:37:3
   2.   └─testthat:::compare_messages(...)
   3.     └─base::grepl(regexp, messages, ...)
  ── Error ('test_power.R:40:3'): sar_power returns warning for all identical species ──
  Error in `grepl(as.character(pattern), x, ignore.case, FALSE, perl, fixed, 
      useBytes, FALSE)`: NA in coercion to Rboolean
  Backtrace:
      ▆
   1. └─testthat::expect_warning(...) at test_power.R:40:3
   2.   └─testthat:::compare_messages(...)
   3.     └─base::grepl(regexp, messages, ...)
  
  [ FAIL 2 | WARN 0 | SKIP 20 | PASS 147 ]
  Error: Test failures
  Execution halted