Running ‘testthat.R’ [4s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(distributions3)
  
  Attaching package: 'distributions3'
  
  The following objects are masked from 'package:stats':
  
      Gamma, quantile
  
  The following object is masked from 'package:grDevices':
  
      pdf
  
  > 
  > test_check("distributions3")
  ── 1. Error: fit_mle.Bernoulli works correctly (@test-Bernoulli.R#8)  ──────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(fit_mle(Bernoulli(), c(0, 1)), Bernoulli(0.5))
   4. distributions3::fit_mle(Bernoulli(), c(0, 1))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 2. Error: suff_stats.Bernoulli works correctly (@test-Bernoulli.R#14)  ──────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. distributions3:::suff_stat(Bernoulli(), c(1, 1, 1, 0, 0))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 3. Error: likelihood.Bernoulli and log_likelihood.Bernoulli work correctly (@
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(b, 1), 0.1)
    4. distributions3::likelihood(b, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 4. Error: random.Bernoulli work correctly (@test-Bernoulli.R#36)  ───────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(b), 1)
   4. distributions3::random(b)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 5. Error: pdf.Bernoulli work correctly (@test-Bernoulli.R#45)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(b, 0), 0.9)
   4. distributions3::pdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 6. Error: cdf.Bernoulli work correctly (@test-Bernoulli.R#59)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(b, 0), 0.9)
   4. distributions3::cdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 7. Error: quantile.Bernoulli work correctly (@test-Bernoulli.R#71)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(b, 0), 0)
   4. distributions3::quantile(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 8. Error: random.Beta work correctly (@test-Beta.R#10)  ─────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(b), 1)
   4. distributions3::random(b)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 9. Error: pdf.Beta work correctly (@test-Beta.R#19)  ────────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(b, 0), 2)
   4. distributions3::pdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 10. Error: log_pdf.Beta work correctly (@test-Beta.R#31)  ───────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(b, 0), log(2))
   4. distributions3::log_pdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 11. Error: cdf.Beta work correctly (@test-Beta.R#43)  ───────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(b, 0), 0)
   4. distributions3::cdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 12. Error: quantile.Beta work correctly (@test-Beta.R#56)  ──────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(b, 0), 0)
   4. distributions3::quantile(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 13. Error: fit_mle.Binomial works correctly (@test-Binomial.R#10)  ──────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. distributions3::fit_mle(Binomial(1), c(0, 1))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 14. Error: suff_stat.Binomial works correctly (@test-Binomial.R#25)  ────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(suff_stat(Binomial(1), c(0, 1)), ss_1)
   4. distributions3:::suff_stat(Binomial(1), c(0, 1))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 15. Error: likelihood.Binomial and log_likelihood.Binomial work correctly (@t
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(b, 1), dbinom(1, 10, 0.1))
    4. distributions3::likelihood(b, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 16. Error: random.Binomial work correctly (@test-Binomial.R#45)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(b), 1)
   4. distributions3::random(b)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 17. Error: pdf.Bernoulli work correctly (@test-Binomial.R#55)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(b, 0), 0.9^2)
   4. distributions3::pdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 18. Error: cdf.Bernoulli work correctly (@test-Binomial.R#69)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(b, 0), 0.9^2)
   4. distributions3::cdf(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 19. Error: quantile.Bernoulli work correctly (@test-Binomial.R#81)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(b, 0), 0)
   4. distributions3::quantile(b, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 20. Error: random.Categorical (@test-Categorical.R#15)  ─────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(X), 1)
   4. distributions3::random(X)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 21. Error: pdf.Categorical (@test-Categorical.R#31)  ────────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(X, 1), 1/6)
   4. distributions3::pdf(X, 1)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 22. Error: cdf.Categorical (@test-Categorical.R#54)  ────────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(X, 1), 1/6)
   4. distributions3::cdf(X, 1)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 23. Error: quantile.Categorical (@test-Categorical.R#70)  ───────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(X, 1), 1/6)
   4. distributions3::cdf(X, 1)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 24. Error: likelihood.Cauchy and log_likelihood.Cauchy work correctly (@test-
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(cau, 1), dcauchy(1))
    4. distributions3::likelihood(cau, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 25. Error: random.Cauchy work correctly (@test-Cauchy.R#21)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cau), 1)
   4. distributions3::random(cau)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 26. Error: pdf.Cauchy work correctly (@test-Cauchy.R#30)  ───────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cau, 0), dcauchy(0, 0, 1))
   4. distributions3::pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 27. Error: log_pdf.Cauchy work correctly (@test-Cauchy.R#41)  ───────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cau, 0), log(dcauchy(0, 0, 1)))
   4. distributions3::log_pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 28. Error: cdf.Cauchy work correctly (@test-Cauchy.R#52)  ───────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cau, 0), pcauchy(0, 0, 1))
   4. distributions3::cdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 29. Error: quantile.Cauchy work correctly (@test-Cauchy.R#64)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cau, 0), qcauchy(0, 0, 1))
   4. distributions3::quantile(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 30. Error: random.ChiSquare work correctly (@test-ChiSquare.R#8)  ───────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cs), 1)
   4. distributions3::random(cs)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 31. Error: pdf.ChiSquare work correctly (@test-ChiSquare.R#17)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cs, 0), Inf)
   4. distributions3::pdf(cs, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 32. Error: log_pdf.ChiSquare work correctly (@test-ChiSquare.R#29)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cs, 0), Inf)
   4. distributions3::log_pdf(cs, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 33. Error: cdf.ChiSquare work correctly (@test-ChiSquare.R#41)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cs, 0), 0)
   4. distributions3::cdf(cs, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 34. Error: quantile.ChiSquare work correctly (@test-ChiSquare.R#53)  ────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cs, 0), 0)
   4. distributions3::quantile(cs, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 35. Error: fit_mle.Exponential works correctly (@test-Exponential.R#4)  ─────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(fit_mle(Exponential(), 1), Exponential(1))
   4. distributions3::fit_mle(Exponential(), 1)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 36. Error: random.Exponential work correctly (@test-Exponential.R#18)  ──────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(e), 1)
   4. distributions3::random(e)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 37. Error: pdf.Exponential work correctly (@test-Exponential.R#27)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(e, 0), 1)
   4. distributions3::pdf(e, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 38. Error: pdf.Exponential work correctly (@test-Exponential.R#39)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(e, 0), log(1))
   4. distributions3::log_pdf(e, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 39. Error: cdf.Exponential work correctly (@test-Exponential.R#51)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(e, 0), 0)
   4. distributions3::cdf(e, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 40. Error: quantile.Exponential work correctly (@test-Exponential.R#63)  ────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(e, 0), 0)
   4. distributions3::quantile(e, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 41. Error: likelihood.FisherF and log_likelihood.FisherF work correctly (@tes
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(s, 1), df(1, 1, 1, 0))
    4. distributions3::likelihood(s, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 42. Error: random.FisherF work correctly (@test-FisherF.R#21)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(s), 1)
   4. distributions3::random(s)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 43. Error: pdf.FisherF work correctly (@test-FisherF.R#30)  ─────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(s, 0), Inf)
   4. distributions3::pdf(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 44. Error: log_pdf.FisherF work correctly (@test-FisherF.R#42)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(s, 0), Inf)
   4. distributions3::log_pdf(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 45. Error: cdf.FisherF work correctly (@test-FisherF.R#54)  ─────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(s, 0), pf(0, 1, 1, 0))
   4. distributions3::cdf(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 46. Error: quantile.FisherF work correctly (@test-FisherF.R#66)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(s, 0), qf(0, 1, 1, 0))
   4. distributions3::quantile(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 47. Error: likelihood.Gamma and log_likelihood.Gamma work correctly (@test-Ga
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(cau, 1), dgamma(1, 1, 1))
    4. distributions3::likelihood(cau, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 48. Error: random.Gamma work correctly (@test-Gamma.R#21)  ──────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cau), 1)
   4. distributions3::random(cau)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 49. Error: pdf.Gamma work correctly (@test-Gamma.R#30)  ─────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cau, 0), dgamma(0, 0, 1))
   4. distributions3::pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 50. Error: log_pdf.Gamma work correctly (@test-Gamma.R#41)  ─────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cau, 0), log(dgamma(0, 0, 1)))
   4. distributions3::log_pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 51. Error: cdf.Gamma work correctly (@test-Gamma.R#52)  ─────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cau, 0), pgamma(0, 0, 1))
   4. distributions3::cdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 52. Error: quantile.Gamma work correctly (@test-Gamma.R#64)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cau, 0), qgamma(0, 0, 1))
   4. distributions3::quantile(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 53. Error: likelihood.Geometric and log_likelihood.Geometric work correctly (
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(cau, 1), dgeom(1, 0.5))
    4. distributions3::likelihood(cau, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 54. Error: random.Geometric work correctly (@test-Geometric.R#21)  ──────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cau), 1)
   4. distributions3::random(cau)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 55. Error: pdf.Geometric work correctly (@test-Geometric.R#30)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cau, 0), dgeom(0, 0.5))
   4. distributions3::pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 56. Error: log_pdf.Geometric work correctly (@test-Geometric.R#41)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cau, 0), log(dgeom(0, 0.5)))
   4. distributions3::log_pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 57. Error: cdf.Geometric work correctly (@test-Geometric.R#52)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cau, 0), pgeom(0, 0.5))
   4. distributions3::cdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 58. Error: quantile.Geometric work correctly (@test-Geometric.R#64)  ────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cau, 0), qgeom(0, 0.5))
   4. distributions3::quantile(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 59. Error: likelihood.HyperGeometric and log_likelihood.HyperGeometric work c
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(h, 1), 0.5)
    4. distributions3::likelihood(h, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 60. Error: random.HyperGeometric work correctly (@test-HyperGeometric.R#22)  
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(h), 1)
   4. distributions3::random(h)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 61. Error: pdf.HyperGeometric work correctly (@test-HyperGeometric.R#31)  ───
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(h, 0), 0.5)
   4. distributions3::pdf(h, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 62. Error: cdf.HyperGeometric work correctly (@test-HyperGeometric.R#45)  ───
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(h, 0), 0.5)
   4. distributions3::cdf(h, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 63. Error: quantile.HyperGeometric work correctly (@test-HyperGeometric.R#57)
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(h, 0), 0)
   4. distributions3::quantile(h, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 64. Error: likelihood.LogNormal and log_likelihood.LogNormal work correctly (
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(cau, 1), dlnorm(1))
    4. distributions3::likelihood(cau, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 65. Error: random.LogNormal work correctly (@test-LogNormal.R#21)  ──────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cau), 1)
   4. distributions3::random(cau)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 66. Error: pdf.LogNormal work correctly (@test-LogNormal.R#30)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cau, 0), dlnorm(0, 0, 1))
   4. distributions3::pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 67. Error: log_pdf.LogNormal work correctly (@test-LogNormal.R#41)  ─────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cau, 0), log(dlnorm(0, 0, 1)))
   4. distributions3::log_pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 68. Error: cdf.LogNormal work correctly (@test-LogNormal.R#52)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cau, 0), plnorm(0, 0, 1))
   4. distributions3::cdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 69. Error: quantile.LogNormal work correctly (@test-LogNormal.R#64)  ────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cau, 0), qlnorm(0, 0, 1))
   4. distributions3::quantile(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 70. Error: likelihood.Logistic and log_likelihood.Logistic work correctly (@t
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(cau, 1), dlogis(1))
    4. distributions3::likelihood(cau, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 71. Error: random.Logistic work correctly (@test-Logistic.R#21)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cau), 1)
   4. distributions3::random(cau)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 72. Error: pdf.Logistic work correctly (@test-Logistic.R#30)  ───────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cau, 0), dlogis(0, 0, 1))
   4. distributions3::pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 73. Error: log_pdf.Logistic work correctly (@test-Logistic.R#41)  ───────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cau, 0), log(dlogis(0, 0, 1)))
   4. distributions3::log_pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 74. Error: cdf.Logistic work correctly (@test-Logistic.R#52)  ───────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cau, 0), plogis(0, 0, 1))
   4. distributions3::cdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 75. Error: quantile.Logistic work correctly (@test-Logistic.R#64)  ──────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cau, 0), qlogis(0, 0, 1))
   4. distributions3::quantile(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 76. Error: likelihood.Multinomial and log_likelihood.Multinomial work correct
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(m, 1), 1)
    4. distributions3::likelihood(m, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 77. Error: random.Multinomial work correctly (@test-Multinomial.R#19)  ──────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(m), 1)
   4. distributions3::random(m)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 78. Error: likelihood.NegativeBinomial and log_likelihood.NegativeBinomial wo
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(cau, 1), dnbinom(1, 1, 1))
    4. distributions3::likelihood(cau, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 79. Error: random.NegativeBinomial work correctly (@test-NegativeBinomial.R#2
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(cau), 1)
   4. distributions3::random(cau)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 80. Error: pdf.NegativeBinomial work correctly (@test-NegativeBinomial.R#30) 
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(cau, 0), dnbinom(0, 0, 1))
   4. distributions3::pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 81. Error: log_pdf.NegativeBinomial work correctly (@test-NegativeBinomial.R#
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(cau, 0), log(dnbinom(0, 0, 1)))
   4. distributions3::log_pdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 82. Error: cdf.NegativeBinomial work correctly (@test-NegativeBinomial.R#52) 
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(cau, 0), pnbinom(0, 0, 1))
   4. distributions3::cdf(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 83. Error: quantile.NegativeBinomial work correctly (@test-NegativeBinomial.R
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(cau, 0), qnbinom(0, 0, 1))
   4. distributions3::quantile(cau, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 84. Error: suff_stat.Normal works correctly (@test-Normal.R#10)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(suff_stat(Normal(), c(0, 0)), ss)
   4. distributions3:::suff_stat(Normal(), c(0, 0))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 85. Error: fit_mle.Normal works correctly (@test-Normal.R#16)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(...)
   4. distributions3::fit_mle(Normal(), c(0, 0))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 86. Error: random.Normal work correctly (@test-Normal.R#22)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(n), 1)
   4. distributions3::random(n)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 87. Error: pdf.Normal work correctly (@test-Normal.R#32)  ───────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(n, 0), dnorm(0, 0, 1))
   4. distributions3::pdf(n, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 88. Error: log_pdf.Normal work correctly (@test-Normal.R#43)  ───────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(n, 0), log(dnorm(0, 0, 1)))
   4. distributions3::log_pdf(n, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 89. Error: cdf.Normal work correctly (@test-Normal.R#55)  ───────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(n, 0), 0.5)
   4. distributions3::cdf(n, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 90. Error: quantile.Normal work correctly (@test-Normal.R#65)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(n, 0), -Inf)
   4. distributions3::quantile(n, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 91. Error: suff_stat.Poisson works correctly (@test-Poisson.R#9)  ───────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(suff_stat(Poisson(1), 1), ss)
   4. distributions3:::suff_stat(Poisson(1), 1)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 92. Error: fit_mle.Poisson works correctly (@test-Poisson.R#20)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(fit_mle(Poisson(1), 2), Poisson(2))
   4. distributions3::fit_mle(Poisson(1), 2)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 93. Error: random.Poisson work correctly (@test-Poisson.R#32)  ──────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(p), 1)
   4. distributions3::random(p)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 94. Error: pdf.Poisson work correctly (@test-Poisson.R#41)  ─────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(p, 0), 1/exp(1))
   4. distributions3::pdf(p, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 95. Error: log_pdf.Poisson work correctly (@test-Poisson.R#55)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(p, 0), -1)
   4. distributions3::log_pdf(p, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 96. Error: cdf.Poisson work correctly (@test-Poisson.R#69)  ─────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(p, 0), 1/exp(1))
   4. distributions3::cdf(p, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 97. Error: quantile.Poisson work correctly (@test-Poisson.R#81)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(p, 0), 0)
   4. distributions3::quantile(p, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 98. Error: likelihood.StudentsT and log_likelihood.StudentsT work correctly (
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(s, 1), dt(1, 1))
    4. distributions3::likelihood(s, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 99. Error: random.StudentsT work correctly (@test-StudentsT.R#21)  ──────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(s), 1)
   4. distributions3::random(s)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 100. Error: pdf.StudentsT work correctly (@test-StudentsT.R#30)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(s, 0), dt(0, 1))
   4. distributions3::pdf(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 101. Error: log_pdf.StudentsT work correctly (@test-StudentsT.R#42)  ────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(s, 0), log(dt(0, 1)))
   4. distributions3::log_pdf(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 102. Error: cdf.StudentsT work correctly (@test-StudentsT.R#54)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(s, 0), pt(0, 1))
   4. distributions3::cdf(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 103. Error: quantile.StudentsT work correctly (@test-StudentsT.R#66)  ───────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(s, 0), qt(0, 1))
   4. distributions3::quantile(s, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 104. Error: likelihood.Uniform and log_likelihood.Uniform work correctly (@te
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(u, 1), dunif(1))
    4. distributions3::likelihood(u, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 105. Error: random.Uniform work correctly (@test-Uniform.R#21)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(u), 1)
   4. distributions3::random(u)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 106. Error: pdf.Uniform work correctly (@test-Uniform.R#30)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(u, 0), dunif(0, 0, 1))
   4. distributions3::pdf(u, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 107. Error: log_pdf.Uniform work correctly (@test-Uniform.R#41)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(u, 0), log(dunif(0, 0, 1)))
   4. distributions3::log_pdf(u, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 108. Error: cdf.Uniform work correctly (@test-Uniform.R#52)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(u, 0), punif(0, 0, 1))
   4. distributions3::cdf(u, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 109. Error: quantile.Uniform work correctly (@test-Uniform.R#64)  ───────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(u, 0), qunif(0, 0, 1))
   4. distributions3::quantile(u, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 110. Error: likelihood.Weibull and log_likelihood.Weibull work correctly (@te
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(likelihood(w, 1), 1/exp(1))
    4. distributions3::likelihood(w, 1)
    5. distributions3::log_likelihood(d, x, ...)
    6. distributions3::log_pdf(d, x, ...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 111. Error: random.Weibull work correctly (@test-Weibull.R#21)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_length(random(w), 1)
   4. distributions3::random(w)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 112. Error: pdf.Weibull work correctly (@test-Weibull.R#30)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pdf(w, 0), 1)
   4. distributions3::pdf(w, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 113. Error: log_pdf.Weibull work correctly (@test-Weibull.R#42)  ────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(log_pdf(w, 0), 0)
   4. distributions3::log_pdf(w, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 114. Error: cdf.Weibull work correctly (@test-Weibull.R#54)  ────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(cdf(w, 0), 0)
   4. distributions3::cdf(w, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 115. Error: quantile.Weibull work correctly (@test-Weibull.R#66)  ───────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(quantile(w, 0), 0)
   4. distributions3::quantile(w, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 116. Error: pmf() works (@test-methods.R#7)  ────────────────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(pmf(N, 0), pdf(N, 0))
   4. distributions3::pmf(N, 0)
   5. distributions3::pdf(d, x, ...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  ── 117. Error: fit_mle() works (@test-methods.R#16)  ───────────────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(Normal(1, 0), fit_mle(N, c(1, 1)))
   4. distributions3::fit_mle(N, c(1, 1))
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 24 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 117 ]
  1. Error: fit_mle.Bernoulli works correctly (@test-Bernoulli.R#8) 
  2. Error: suff_stats.Bernoulli works correctly (@test-Bernoulli.R#14) 
  3. Error: likelihood.Bernoulli and log_likelihood.Bernoulli work correctly (@test-Bernoulli.R#26) 
  4. Error: random.Bernoulli work correctly (@test-Bernoulli.R#36) 
  5. Error: pdf.Bernoulli work correctly (@test-Bernoulli.R#45) 
  6. Error: cdf.Bernoulli work correctly (@test-Bernoulli.R#59) 
  7. Error: quantile.Bernoulli work correctly (@test-Bernoulli.R#71) 
  8. Error: random.Beta work correctly (@test-Beta.R#10) 
  9. Error: pdf.Beta work correctly (@test-Beta.R#19) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted