Running ‘testthat.R’ [6s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(extremeStat)
  > 
  > test_check("extremeStat")
  ── 1. Error: distLweights checks for unused arguments (@test-gof.R#66)  ────────
  non-numeric argument to binary operator
  Backtrace:
    1. testthat::expect_warning(...)
    6. extremeStat::distLquantile(rexp(199), ks = FALSE, hi = TRUE)
   10. berryFunctions::quantileMean(...)
   11. base::apply(qx, 1, function(y) sum(y * weights))
   12. berryFunctions:::FUN(newX[, i], ...)
  
  ── 2. Error: distLquantile generally runs fine (@test-quantile.R#8)  ───────────
  non-numeric argument to binary operator
  Backtrace:
   1. extremeStat::distLquantile(annMax)
   5. berryFunctions::quantileMean(...)
   6. base::apply(qx, 1, function(y) sum(y * weights))
   7. berryFunctions:::FUN(newX[, i], ...)
  
  ── 3. Error: infinite values are removed (@test-quantile.R#24)  ────────────────
  non-numeric argument to binary operator
  Backtrace:
   1. extremeStat::distLextreme(c(-Inf, annMax))
   2. extremeStat::distLquantile(...)
   6. berryFunctions::quantileMean(...)
   7. base::apply(qx, 1, function(y) sum(y * weights))
   8. berryFunctions:::FUN(newX[, i], ...)
  
  ── 4. Error: distLquantile can handle selection input (@test-quantile.R#28)  ───
  non-numeric argument to binary operator
  Backtrace:
   1. extremeStat::distLquantile(...)
   5. berryFunctions::quantileMean(...)
   6. base::apply(qx, 1, function(y) sum(y * weights))
   7. berryFunctions:::FUN(newX[, i], ...)
  
  ── 5. Error: distLquantile can handle emp, truncate (@test-quantile.R#86)  ─────
  non-numeric argument to binary operator
  Backtrace:
    1. testthat::expect_equal(...)
    5. extremeStat::distLquantile(annMax, emp = FALSE)
    9. berryFunctions::quantileMean(...)
   10. base::apply(qx, 1, function(y) sum(y * weights))
   11. berryFunctions:::FUN(newX[, i], ...)
  
  ── 6. Error: distLquantile can handle list (@test-quantile.R#145)  ─────────────
  non-numeric argument to binary operator
  Backtrace:
    1. testthat::expect_is(...)
    4. extremeStat::distLquantile(annMax, truncate = 0.62, list = TRUE)
    8. berryFunctions::quantileMean(...)
    9. base::apply(qx, 1, function(y) sum(y * weights))
   10. berryFunctions:::FUN(newX[, i], ...)
  
  ── 7. Error: distLquantile can handle inputs with (rare) errors (@test-quantile.
  non-numeric argument to binary operator
  Backtrace:
    1. testthat::expect_message(...)
    6. extremeStat::distLquantile(xx1, truncate = 0.8)
   10. berryFunctions::quantileMean(...)
   11. base::apply(qx, 1, function(y) sum(y * weights))
   12. berryFunctions:::FUN(newX[, i], ...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 34 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: distLweights checks for unused arguments (@test-gof.R#66) 
  2. Error: distLquantile generally runs fine (@test-quantile.R#8) 
  3. Error: infinite values are removed (@test-quantile.R#24) 
  4. Error: distLquantile can handle selection input (@test-quantile.R#28) 
  5. Error: distLquantile can handle emp, truncate (@test-quantile.R#86) 
  6. Error: distLquantile can handle list (@test-quantile.R#145) 
  7. Error: distLquantile can handle inputs with (rare) errors (@test-quantile.R#154) 
  
  Error: testthat unit tests failed
  Execution halted