Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(simplecolors)
  > 
  > test_check("simplecolors")
  ── 1. Error: build_colors returns table (@test-build_colors.R#4)  ──────────────
  'where' must be an environment
  Backtrace:
    1. simplecolors:::build_colors()
   15. forcats::fct_reorder(sat, S, max)
   16. ellipsis::check_dots_used()
   18. ellipsis:::exit_handler(action)
   19. base::bquote(...)
  
  ── 2. Error: sc_within defaults to vector (@test-sc_within.R#4)  ───────────────
  'where' must be an environment
  Backtrace:
    1. simplecolors::sc_within(hue = "red", light = 1:2)
   14. forcats::fct_reorder(factor(sat), s_ord)
   15. ellipsis::check_dots_used()
   17. ellipsis:::exit_handler(action)
   18. base::bquote(...)
  
  ── 3. Error: sc_within returns ggplot (@test-sc_within.R#14)  ──────────────────
  'where' must be an environment
  Backtrace:
    1. simplecolors::sc_within(hue = "red", light = 1:2, return = "plot")
   14. forcats::fct_reorder(factor(sat), s_ord)
   15. ellipsis::check_dots_used()
   17. ellipsis:::exit_handler(action)
   18. base::bquote(...)
  
  ── 4. Error: sc_within returns table (@test-sc_within.R#25)  ───────────────────
  'where' must be an environment
  Backtrace:
    1. simplecolors::sc_within(hue = "red", light = 1:2, return = "table")
   14. forcats::fct_reorder(factor(sat), s_ord)
   15. ellipsis::check_dots_used()
   17. ellipsis:::exit_handler(action)
   18. base::bquote(...)
  
  ── 5. Error: sc_* match sc_within (@test-sc_within.R#35)  ──────────────────────
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(sc_red(), sc_within("red"))
   18. forcats::fct_reorder(factor(sat), s_ord)
   19. ellipsis::check_dots_used()
   21. ellipsis:::exit_handler(action)
   22. base::bquote(...)
  
  ── 6. Error: show_colors retuns gglot (@test-show_colors.R#4)  ─────────────────
  'where' must be an environment
  Backtrace:
    1. simplecolors::show_colors(labels = TRUE)
    2. base::paste0(color, " (", letter, ")")
   10. forcats::fct_reorder(., H360)
   22. ellipsis::check_dots_used()
   24. ellipsis:::exit_handler(action)
   25. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 9 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 6 ]
  1. Error: build_colors returns table (@test-build_colors.R#4) 
  2. Error: sc_within defaults to vector (@test-sc_within.R#4) 
  3. Error: sc_within returns ggplot (@test-sc_within.R#14) 
  4. Error: sc_within returns table (@test-sc_within.R#25) 
  5. Error: sc_* match sc_within (@test-sc_within.R#35) 
  6. Error: show_colors retuns gglot (@test-show_colors.R#4) 
  
  Error: testthat unit tests failed
  Execution halted