Running ‘testthat.R’ [32s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(flashlight)
  > 
  > test_check("flashlight")
  ── 1. Error: light_effects works and produces same as individual profiles (@test
  there is no package called 'digest'
  Backtrace:
    1. testthat::expect_true(inherits(plot_counts(plot(eff), eff), "ggplot"))
    5. flashlight::plot_counts(plot(eff), eff)
    6. ggpubr::ggarrange(...)
    7. purrr::map(...)
    8. ggpubr:::.f(.x[[i]], ...)
    9. cowplot::plot_grid(plotlist = plotlist, ...)
   10. cowplot::align_plots(...)
   11. base::lapply(...)
   12. cowplot:::FUN(X[[i]], ...)
   14. cowplot:::as_gtable.default(x)
       ...
   26. ggplot2:::FUN(X[[i]], ...)
   28. ggplot2:::guide_train.axis(guide, panel_params[[aesthetic]])
   29. digest::digest
   30. base::getExportedValue(pkg, name)
   31. base::asNamespace(ns)
   32. base::getNamespace(ns)
   33. base::loadNamespace(name)
   34. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   35. base:::withOneRestart(expr, restarts[[1L]])
   36. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: light_effects works with 'by' (@tests-eff.R#172)  ─────────────────
  there is no package called 'digest'
  Backtrace:
    1. testthat::expect_true(inherits(plot_counts(plot(eff), eff), "ggplot"))
    5. flashlight::plot_counts(plot(eff), eff)
    6. ggpubr::ggarrange(...)
    7. purrr::map(...)
    8. ggpubr:::.f(.x[[i]], ...)
    9. cowplot::plot_grid(plotlist = plotlist, ...)
   10. cowplot::align_plots(...)
   11. base::lapply(...)
   12. cowplot:::FUN(X[[i]], ...)
   14. cowplot:::as_gtable.default(x)
       ...
   26. ggplot2:::FUN(X[[i]], ...)
   28. ggplot2:::guide_train.axis(guide, panel_params[[aesthetic]])
   29. digest::digest
   30. base::getExportedValue(pkg, name)
   31. base::asNamespace(ns)
   32. base::getNamespace(ns)
   33. base::loadNamespace(name)
   34. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   35. base:::withOneRestart(expr, restarts[[1L]])
   36. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 285 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: light_effects works and produces same as individual profiles (@tests-eff.R#153) 
  2. Error: light_effects works with 'by' (@tests-eff.R#172) 
  
  Error: testthat unit tests failed
  Execution halted