Running ‘testthat.R’ [50s/75s]
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) 
  ────────────────────────────────────────────────────────────────────────────────
  ── ERROR (test_thresholds.R:8:3): sar_threshold returns correct results ────────
  Error: cannot xtfrm 'x'
  Backtrace:
       █
    1. ├─base::summary(fit) test_thresholds.R:8:2
    2. └─sars:::summary.sars(fit)
    3.   ├─mt[order(mt[order]), ]
    4.   ├─base::`[.data.frame`(mt, order(mt[order]), )
    5.   └─base::order(mt[order])
    6.     └─base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    7.       └─base:::FUN(X[[i]], ...)
    8.         ├─base::as.vector(xtfrm(x))
    9.         ├─base::xtfrm(x)
   10.         └─base::xtfrm.default(x)
  
  ── ERROR (test_thresholds.R:69:3): nisl argument returns correct results ───────
  Error: cannot xtfrm 'x'
  Backtrace:
       █
    1. ├─base::summary(fitT) test_thresholds.R:69:2
    2. └─sars:::summary.sars(fitT)
    3.   ├─mt[order(mt[order]), ]
    4.   ├─base::`[.data.frame`(mt, order(mt[order]), )
    5.   └─base::order(mt[order])
    6.     └─base::lapply(z, function(x) if (is.object(x)) as.vector(xtfrm(x)) else x)
    7.       └─base:::FUN(X[[i]], ...)
    8.         ├─base::as.vector(xtfrm(x))
    9.         ├─base::xtfrm(x)
   10.         └─base::xtfrm.default(x)
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (2)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test_thresholds.R:8:3): sar_threshold returns correct results
  ERROR (test_thresholds.R:69:3): nisl argument returns correct results
  
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 138 ]
  Error: Test failures
  Execution halted