Running 'testthat.R' [3s/4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(forcats)
  > 
  > test_check("forcats")
  -- 1. Error: equivalent to fct_inorder (@test-as_factor.R#5)  ------------------
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(as_factor(x), fct_inorder(x))
   4. forcats::as_factor(x)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  -- 2. Error: leaves factors as is (@test-as_factor.R#10)  ----------------------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(f1)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 3. Error: logical has fixed levels (@test-as_factor.R#16)  ------------------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(FALSE)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 4. Error: supports NA (#89) (@test-as_factor.R#22)  -------------------------
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(as_factor(x), fct_inorder(x))
   4. forcats::as_factor(x)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  -- 5. Error: gives correct levels (@test-fct_cross.R#8)  -----------------------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(c("apple", "kiwi", "apple", "apple"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 6. Error: keeps empty levels when requested (@test-fct_cross.R#21)  ---------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(c("apple", "kiwi", "apple", "apple"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 7. Error: order of levels is preserved (@test-fct_cross.R#29)  --------------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(c("apple", "kiwi", "apple", "apple"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 8. Error: gives NA output on NA input (@test-fct_cross.R#41)  ---------------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(c("apple", "kiwi", "apple", "apple"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 9. Error: gives NA output on NA input, when keeping empty levels (@test-fct_c
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(c("apple", "kiwi", "apple", "apple"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 10. Error: can combine more than two factors (@test-fct_cross.R#60)  --------
  'where' must be an environment
  Backtrace:
   1. forcats::as_factor(c("apple", "kiwi", "apple", "apple"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 11. Error: can reorder by 2d summary (@test-reorder.R#13)  ------------------
  'where' must be an environment
  Backtrace:
   1. forcats::fct_reorder(df$g, df$x)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 12. Error: can reorder by 2d summary (@test-reorder.R#29)  ------------------
  'where' must be an environment
  Backtrace:
   1. forcats::fct_reorder2(df$g, df$x, df$y)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  -- 13. Failure: complains if summary doesn't return single value (@test-reorder.
  `fct_reorder("a", 1, fun1)` threw an error with unexpected message.
  Expected match: "single value per group"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(fct_reorder("a", 1, fun1), "single value per group")
    6. forcats::fct_reorder("a", 1, fun1)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 14. Failure: complains if summary doesn't return single value (@test-reorder.
  `fct_reorder("a", 1, fun2)` threw an error with unexpected message.
  Expected match: "single value per group"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(fct_reorder("a", 1, fun2), "single value per group")
    6. forcats::fct_reorder("a", 1, fun2)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 15. Failure: complains if summary doesn't return single value (@test-reorder.
  `fct_reorder2("a", 1, 2, fun1)` threw an error with unexpected message.
  Expected match: "single value per group"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(fct_reorder2("a", 1, 2, fun1), "single value per group")
    6. forcats::fct_reorder2("a", 1, 2, fun1)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 16. Failure: complains if summary doesn't return single value (@test-reorder.
  `fct_reorder2("a", 1, 2, fun2)` threw an error with unexpected message.
  Expected match: "single value per group"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(fct_reorder2("a", 1, 2, fun2), "single value per group")
    6. forcats::fct_reorder2("a", 1, 2, fun2)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  == testthat results  ===========================================================
  [ OK: 147 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 16 ]
  1. Error: equivalent to fct_inorder (@test-as_factor.R#5) 
  2. Error: leaves factors as is (@test-as_factor.R#10) 
  3. Error: logical has fixed levels (@test-as_factor.R#16) 
  4. Error: supports NA (#89) (@test-as_factor.R#22) 
  5. Error: gives correct levels (@test-fct_cross.R#8) 
  6. Error: keeps empty levels when requested (@test-fct_cross.R#21) 
  7. Error: order of levels is preserved (@test-fct_cross.R#29) 
  8. Error: gives NA output on NA input (@test-fct_cross.R#41) 
  9. Error: gives NA output on NA input, when keeping empty levels (@test-fct_cross.R#51) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted