Running 'testthat.R' [70s/78s]
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) 
  --------------------------------------------------------------------------------
  -- ERROR (test_thresholds.R:8:3): sar_threshold returns correct results --------
  Error: cannot xtfrm 'x'
  Backtrace:
       x
    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:
       x
    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