Running ‘testthat.R’ [40s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(distributions3)
  
  Attaching package: 'distributions3'
  
  The following object is masked from 'package:stats':
  
      Gamma
  
  The following object is masked from 'package:grDevices':
  
      pdf
  
  > 
  > test_check("distributions3")
  Starting 2 test processes
  [ FAIL 47 | WARN 59 | SKIP 0 | PASS 2357 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-Frechet.R:31:3'): random.Frechet works correctly ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_length(random(g1), 1) at test-Frechet.R:31:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(g1)
    5. ├─distributions3:::random.Frechet(g1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─distributions3 (local) FUN(at, d = d, ...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:45:3'): pdf.Frechet works correctly ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Frechet.R:45:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(pdf(g1, x1))
    5. ├─distributions3::pdf(g1, x1)
    6. ├─distributions3:::pdf.Frechet(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:53:3'): log_pdf.Frechet works correctly ──────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Frechet.R:53:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(log_pdf(g1, x1))
    5. ├─distributions3::log_pdf(g1, x1)
    6. ├─distributions3:::log_pdf.Frechet(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:60:3'): cdf.Frechet works correctly ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Frechet.R:60:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g1, x1))
    5. ├─distributions3::cdf(g1, x1)
    6. ├─distributions3:::cdf.Frechet(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:68:3'): quantile.Frechet works correctly ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Frechet.R:68:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(quantile(g1, pvec))
    5. ├─stats::quantile(g1, pvec)
    6. ├─distributions3:::quantile.Frechet(g1, pvec)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:75:3'): cdf.Frechet and quantile.Frechet are consistent ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(cdf(g1, quantile(g1, pvec))), pvec) at test-Frechet.R:75:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g1, quantile(g1, pvec)))
    5. ├─distributions3::cdf(g1, quantile(g1, pvec))
    6. ├─distributions3:::cdf.Frechet(g1, quantile(g1, pvec))
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::stopifnot(...)
    9. ├─stats::quantile(g1, pvec)
   10. ├─distributions3:::quantile.Frechet(g1, pvec)
   11. │ └─distributions3::apply_dpqr(...)
   12. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
   13. │     └─distributions3 (local) FUN(X[[i]], ...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base (local) withOneRestart(expr, restarts[[1L]])
   17.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:91:3'): vectorization of a Frechet distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─distributions3::random(d) at test-Frechet.R:91:3
    2. ├─distributions3:::random.Frechet(d)
    3. │ └─distributions3::apply_dpqr(...)
    4. │   └─base::replicate(at, FUN(n, d = d))
    5. │     └─base::sapply(...)
    6. │       └─base::lapply(X = X, FUN = FUN, ...)
    7. │         └─distributions3 (local) FUN(X[[i]], ...)
    8. │           └─distributions3 (local) FUN(n, d = d)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Frechet.R:150:3'): named return values for Frechet distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(names(random(d, 1)), LETTERS[1:length(d)]) at test-Frechet.R:150:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(d, 1)
    5. ├─distributions3:::random.Frechet(d, 1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─base::replicate(at, FUN(n, d = d))
    8. │     └─base::sapply(...)
    9. │       └─base::lapply(X = X, FUN = FUN, ...)
   10. │         └─distributions3 (local) FUN(X[[i]], ...)
   11. │           └─distributions3 (local) FUN(n, d = d)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base (local) withOneRestart(expr, restarts[[1L]])
   15.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:32:3'): random.GEV works correctly ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_length(random(g1), 1) at test-GeneralisedExtremeValue.R:32:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(g1)
    5. ├─distributions3:::random.GEV(g1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─distributions3 (local) FUN(at, d = d, ...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:68:3'): pdf.GEV works correctly ──────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-GeneralisedExtremeValue.R:68:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(pdf(g1, x1))
    5. ├─distributions3::pdf(g1, x1)
    6. ├─distributions3:::pdf.GEV(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:88:3'): log_pdf.GEV works correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-GeneralisedExtremeValue.R:88:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(log_pdf(g1, x1))
    5. ├─distributions3::log_pdf(g1, x1)
    6. ├─distributions3:::log_pdf.GEV(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:105:3'): cdf.GEV works correctly ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-GeneralisedExtremeValue.R:105:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g1, x1))
    5. ├─distributions3::cdf(g1, x1)
    6. ├─distributions3:::cdf.GEV(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:123:3'): quantile.GEV works correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-GeneralisedExtremeValue.R:123:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(quantile(g1, pvec))
    5. ├─stats::quantile(g1, pvec)
    6. ├─distributions3:::quantile.GEV(g1, pvec)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:142:3'): cdf.GEV and quantile.GEV are consistent ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(cdf(g1, quantile(g1, pvec))), pvec) at test-GeneralisedExtremeValue.R:142:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g1, quantile(g1, pvec)))
    5. ├─distributions3::cdf(g1, quantile(g1, pvec))
    6. ├─distributions3:::cdf.GEV(g1, quantile(g1, pvec))
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::stopifnot(...)
    9. ├─stats::quantile(g1, pvec)
   10. ├─distributions3:::quantile.GEV(g1, pvec)
   11. │ └─distributions3::apply_dpqr(...)
   12. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
   13. │     └─distributions3 (local) FUN(X[[i]], ...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base (local) withOneRestart(expr, restarts[[1L]])
   17.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:160:3'): vectorization of a GEV distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─distributions3::random(d) at test-GeneralisedExtremeValue.R:160:3
    2. ├─distributions3:::random.GEV(d)
    3. │ └─distributions3::apply_dpqr(...)
    4. │   └─base::replicate(at, FUN(n, d = d))
    5. │     └─base::sapply(...)
    6. │       └─base::lapply(X = X, FUN = FUN, ...)
    7. │         └─distributions3 (local) FUN(X[[i]], ...)
    8. │           └─distributions3 (local) FUN(n, d = d)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedExtremeValue.R:219:3'): named return values for GEV distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(names(random(d, 1)), LETTERS[1:length(d)]) at test-GeneralisedExtremeValue.R:219:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(d, 1)
    5. ├─distributions3:::random.GEV(d, 1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─base::replicate(at, FUN(n, d = d))
    8. │     └─base::sapply(...)
    9. │       └─base::lapply(X = X, FUN = FUN, ...)
   10. │         └─distributions3 (local) FUN(X[[i]], ...)
   11. │           └─distributions3 (local) FUN(n, d = d)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base (local) withOneRestart(expr, restarts[[1L]])
   15.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:31:3'): random.GP works correctly ──────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_length(random(g1), 1) at test-GeneralisedPareto.R:31:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(g1)
    5. ├─distributions3:::random.GP(g1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─distributions3 (local) FUN(at, d = d, ...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:67:3'): pdf.GP works correctly ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(pdf(g1, x1)), c(1, 0, NA)) at test-GeneralisedPareto.R:67:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(pdf(g1, x1))
    5. ├─distributions3::pdf(g1, x1)
    6. ├─distributions3:::pdf.GP(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:87:3'): log_pdf.GP works correctly ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(log_pdf(g1, x1)), c(0, -Inf, NA)) at test-GeneralisedPareto.R:87:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(log_pdf(g1, x1))
    5. ├─distributions3::log_pdf(g1, x1)
    6. ├─distributions3:::log_pdf.GP(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:104:3'): cdf.GP works correctly ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(cdf(g1, x1)), c(0, 1, NA)) at test-GeneralisedPareto.R:104:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g1, x1))
    5. ├─distributions3::cdf(g1, x1)
    6. ├─distributions3:::cdf.GP(g1, x1)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:122:3'): quantile.GP works correctly ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-GeneralisedPareto.R:122:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(quantile(g1, pvec))
    5. ├─stats::quantile(g1, pvec)
    6. ├─distributions3:::quantile.GP(g1, pvec)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:141:3'): cdf.GP and quantile.GP are consistent ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(cdf(g1, quantile(g1, pvec))), pvec) at test-GeneralisedPareto.R:141:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g1, quantile(g1, pvec)))
    5. ├─distributions3::cdf(g1, quantile(g1, pvec))
    6. ├─distributions3:::cdf.GP(g1, quantile(g1, pvec))
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::stopifnot(...)
    9. ├─stats::quantile(g1, pvec)
   10. ├─distributions3:::quantile.GP(g1, pvec)
   11. │ └─distributions3::apply_dpqr(...)
   12. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
   13. │     └─distributions3 (local) FUN(X[[i]], ...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base (local) withOneRestart(expr, restarts[[1L]])
   17.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:159:3'): vectorization of a GP distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─distributions3::random(d) at test-GeneralisedPareto.R:159:3
    2. ├─distributions3:::random.GP(d)
    3. │ └─distributions3::apply_dpqr(...)
    4. │   └─base::replicate(at, FUN(n, d = d))
    5. │     └─base::sapply(...)
    6. │       └─base::lapply(X = X, FUN = FUN, ...)
    7. │         └─distributions3 (local) FUN(X[[i]], ...)
    8. │           └─distributions3 (local) FUN(n, d = d)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-GeneralisedPareto.R:218:3'): named return values for GP distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(names(random(d, 1)), LETTERS[1:length(d)]) at test-GeneralisedPareto.R:218:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(d, 1)
    5. ├─distributions3:::random.GP(d, 1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─base::replicate(at, FUN(n, d = d))
    8. │     └─base::sapply(...)
    9. │       └─base::lapply(X = X, FUN = FUN, ...)
   10. │         └─distributions3 (local) FUN(X[[i]], ...)
   11. │           └─distributions3 (local) FUN(n, d = d)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base (local) withOneRestart(expr, restarts[[1L]])
   15.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:19:3'): random.Gumbel works correctly ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_length(random(g2), 1) at test-Gumbel.R:19:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(g2)
    5. ├─distributions3:::random.Gumbel(g2)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─distributions3 (local) FUN(at, d = d, ...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:33:3'): pdf.Gumbel works correctly ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Gumbel.R:33:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(pdf(g2, x2))
    5. ├─distributions3::pdf(g2, x2)
    6. ├─distributions3:::pdf.Gumbel(g2, x2)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:41:3'): log_pdf.Gumbel works correctly ────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Gumbel.R:41:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(log_pdf(g2, x2))
    5. ├─distributions3::log_pdf(g2, x2)
    6. ├─distributions3:::log_pdf.Gumbel(g2, x2)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:48:3'): cdf.Gumbel works correctly ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Gumbel.R:48:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g2, x2))
    5. ├─distributions3::cdf(g2, x2)
    6. ├─distributions3:::cdf.Gumbel(g2, x2)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:56:3'): quantile.Gumbel works correctly ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-Gumbel.R:56:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(quantile(g2, pvec))
    5. ├─stats::quantile(g2, pvec)
    6. ├─distributions3:::quantile.Gumbel(g2, pvec)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:63:3'): cdf.Gumbel and quantile.Gumbel are consistent ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(cdf(g2, quantile(g2, pvec))), pvec) at test-Gumbel.R:63:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g2, quantile(g2, pvec)))
    5. ├─distributions3::cdf(g2, quantile(g2, pvec))
    6. ├─distributions3:::cdf.Gumbel(g2, quantile(g2, pvec))
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::stopifnot(...)
    9. ├─stats::quantile(g2, pvec)
   10. ├─distributions3:::quantile.Gumbel(g2, pvec)
   11. │ └─distributions3::apply_dpqr(...)
   12. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
   13. │     └─distributions3 (local) FUN(X[[i]], ...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base (local) withOneRestart(expr, restarts[[1L]])
   17.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:79:3'): vectorization of a Gumbel distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─distributions3::random(d) at test-Gumbel.R:79:3
    2. ├─distributions3:::random.Gumbel(d)
    3. │ └─distributions3::apply_dpqr(...)
    4. │   └─base::replicate(at, FUN(n, d = d))
    5. │     └─base::sapply(...)
    6. │       └─base::lapply(X = X, FUN = FUN, ...)
    7. │         └─distributions3 (local) FUN(X[[i]], ...)
    8. │           └─distributions3 (local) FUN(n, d = d)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-Gumbel.R:138:3'): named return values for Gumbel distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(names(random(d, 1)), LETTERS[1:length(d)]) at test-Gumbel.R:138:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(d, 1)
    5. ├─distributions3:::random.Gumbel(d, 1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─base::replicate(at, FUN(n, d = d))
    8. │     └─base::sapply(...)
    9. │       └─base::lapply(X = X, FUN = FUN, ...)
   10. │         └─distributions3 (local) FUN(X[[i]], ...)
   11. │           └─distributions3 (local) FUN(n, d = d)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base (local) withOneRestart(expr, restarts[[1L]])
   15.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:31:3'): random.RevWeibull works correctly ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_length(random(g3), 1) at test-RevWeibull.R:31:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(g3)
    5. ├─distributions3:::random.RevWeibull(g3)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─distributions3 (local) FUN(at, d = d, ...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:45:3'): pdf.RevWeibull works correctly ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-RevWeibull.R:45:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(pdf(g3, x3))
    5. ├─distributions3::pdf(g3, x3)
    6. ├─distributions3:::pdf.RevWeibull(g3, x3)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:53:3'): log_pdf.RevWeibull works correctly ────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-RevWeibull.R:53:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(log_pdf(g3, x3))
    5. ├─distributions3::log_pdf(g3, x3)
    6. ├─distributions3:::log_pdf.RevWeibull(g3, x3)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:60:3'): cdf.RevWeibull works correctly ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-RevWeibull.R:60:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g3, x3))
    5. ├─distributions3::cdf(g3, x3)
    6. ├─distributions3:::cdf.RevWeibull(g3, x3)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:68:3'): quantile.RevWeibull works correctly ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-RevWeibull.R:68:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(quantile(g3, pvec))
    5. ├─stats::quantile(g3, pvec)
    6. ├─distributions3:::quantile.RevWeibull(g3, pvec)
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
    9. │     └─distributions3 (local) FUN(X[[i]], ...)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base (local) withOneRestart(expr, restarts[[1L]])
   13.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:75:3'): cdf.RevWeibull and quantile.RevWeibull are consistent ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(unname(cdf(g3, quantile(g3, pvec))), pvec) at test-RevWeibull.R:75:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unname(cdf(g3, quantile(g3, pvec)))
    5. ├─distributions3::cdf(g3, quantile(g3, pvec))
    6. ├─distributions3:::cdf.RevWeibull(g3, quantile(g3, pvec))
    7. │ └─distributions3::apply_dpqr(...)
    8. │   └─base::stopifnot(...)
    9. ├─stats::quantile(g3, pvec)
   10. ├─distributions3:::quantile.RevWeibull(g3, pvec)
   11. │ └─distributions3::apply_dpqr(...)
   12. │   └─base::vapply(at, FUN, numeric(n), d = d, ...)
   13. │     └─distributions3 (local) FUN(X[[i]], ...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base (local) withOneRestart(expr, restarts[[1L]])
   17.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:89:3'): vectorization of a RevWeibull distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─distributions3::random(d) at test-RevWeibull.R:89:3
    2. ├─distributions3:::random.RevWeibull(d)
    3. │ └─distributions3::apply_dpqr(...)
    4. │   └─base::replicate(at, FUN(n, d = d))
    5. │     └─base::sapply(...)
    6. │       └─base::lapply(X = X, FUN = FUN, ...)
    7. │         └─distributions3 (local) FUN(X[[i]], ...)
    8. │           └─distributions3 (local) FUN(n, d = d)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-RevWeibull.R:146:3'): named return values for RevWeibull distribution work correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'revdbayes'
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(names(random(d, 1)), LETTERS[1:length(d)]) at test-RevWeibull.R:146:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─distributions3::random(d, 1)
    5. ├─distributions3:::random.RevWeibull(d, 1)
    6. │ └─distributions3::apply_dpqr(...)
    7. │   └─base::replicate(at, FUN(n, d = d))
    8. │     └─base::sapply(...)
    9. │       └─base::lapply(X = X, FUN = FUN, ...)
   10. │         └─distributions3 (local) FUN(X[[i]], ...)
   11. │           └─distributions3 (local) FUN(n, d = d)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base (local) withOneRestart(expr, restarts[[1L]])
   15.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Failure ('test-PoissonBinomial.R:20:3'): random.PoissonBinomial work correctly ──
  random(pb, 100) has length 1, not length 100.
  ── Failure ('test-PoissonBinomial.R:26:3'): random.PoissonBinomial work correctly ──
  random(pb, c(1, 2, 3)) has length 1, not length 3.
  ── Failure ('test-PoissonBinomial.R:27:3'): random.PoissonBinomial work correctly ──
  random(pb, cbind(1, 2, 3)) has length 1, not length 3.
  ── Failure ('test-PoissonBinomial.R:28:3'): random.PoissonBinomial work correctly ──
  random(pb, rbind(1, 2, 3)) has length 1, not length 3.
  ── Failure ('test-PoissonBinomial.R:35:3'): pdf.PoissonBinomial work correctly ──
  pdf(pb, 0) (`actual`) not equal to prod(1 - as.matrix(pb)) (`expected`).
  
    `actual`: 0.077
  `expected`: 0.070
  ── Failure ('test-PoissonBinomial.R:48:3'): cdf.PoissonBinomial work correctly ──
  cdf(pb, 0) (`actual`) not equal to prod(1 - as.matrix(pb)) (`expected`).
  
    `actual`: 0.08
  `expected`: 0.07
  ── Failure ('test-PoissonBinomial.R:84:3'): vectorization of a PoissonBinomial distribution work correctly ──
  `r1` (`actual`) not equal to `r2` (`expected`).
  
    `actual`: 1 2
  `expected`: 2 1
  
  [ FAIL 47 | WARN 59 | SKIP 0 | PASS 2357 ]
  Error: Test failures
  Execution halted