Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyr)
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("tidyr")
  ── 1. Error: basic invocation works (@test-complete.R#9)  ──────────────────────
  'where' must be an environment
  Backtrace:
   1. tidyr::complete(df, x, y)
   2. tidyr:::complete.data.frame(df, x, y)
   3. tidyr::replace_na(full, replace = fill)
   4. ellipsis::check_dots_used()
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  ── 2. Error: preserves grouping (@test-complete.R#16)  ─────────────────────────
  'where' must be an environment
  Backtrace:
   1. tidyr::complete(df, x, y)
   2. tidyr:::complete.data.frame(df, x, y)
   3. tidyr::replace_na(full, replace = fill)
   4. ellipsis::check_dots_used()
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  ── 3. Error: expands empty factors (@test-complete.R#25)  ──────────────────────
  'where' must be an environment
  Backtrace:
    1. testthat::expect_equal(nrow(complete(df, one, two)), 9)
    6. tidyr:::complete.data.frame(df, one, two)
    7. tidyr::replace_na(full, replace = fill)
    8. ellipsis::check_dots_used()
   10. ellipsis:::exit_handler(action)
   11. base::bquote(...)
  
  ── 4. Error: not drop unspecified levels in complete (@test-complete.R#41)  ────
  'where' must be an environment
  Backtrace:
    9. tidyr::complete(., z = c("a", "b"))
   11. tidyr::replace_na(full, replace = fill)
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  ── 5. Error: default returns first alpha group (@test-extract.R#5)  ────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::extract(., x, "A")
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 6. Error: can match multiple groups (@test-extract.R#11)  ───────────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::extract(., x, c("A", "B"), "([[:alnum:]]+)\\.([[:alnum:]]+)")
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 7. Error: match failures give NAs (@test-extract.R#18)  ─────────────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::extract(., x, "a", "(b)")
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 8. Error: extract keeps characters as character (@test-extract.R#24)  ───────
  'where' must be an environment
  Backtrace:
   1. tidyr::extract(df, x, c("x", "y"), "(.)-(.)", convert = TRUE)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 9. Error: can combine into multiple columns (@test-extract.R#31)  ───────────
  'where' must be an environment
  Backtrace:
   1. tidyr::extract(...)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 10. Error: groups are preserved (@test-extract.R#37)  ───────────────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::extract(., x, c("x", "y"), "(.)(.)")
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 11. Failure: informative error message if wrong number of groups (@test-extra
  `extract(df, x, "y", ".")` threw an error with unexpected message.
  Expected match: "should define 1 groups"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(extract(df, x, "y", "."), "should define 1 groups")
    6. tidyr::extract(df, x, "y", ".")
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 12. Failure: informative error message if wrong number of groups (@test-extra
  `extract(df, x, c("y", "z"), ".")` threw an error with unexpected message.
  Expected match: "should define 2 groups"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(extract(df, x, c("y", "z"), "."), "should define 2 groups")
    6. tidyr::extract(df, x, c("y", "z"), ".")
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 13. Error: empty call does nothing (@test-replace_na.R#7)  ──────────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(replace_na(x), x)
   4. tidyr::replace_na(x)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 14. Error: missing values are replaced (@test-replace_na.R#12)  ─────────────
  'where' must be an environment
  Backtrace:
   1. testthat::expect_equal(replace_na(x, 0), c(1, 0))
   4. tidyr::replace_na(x, 0)
   5. ellipsis::check_dots_used()
   7. ellipsis:::exit_handler(action)
   8. base::bquote(...)
  
  ── 15. Failure: can only be length 0 (@test-replace_na.R#16)  ──────────────────
  `replace_na(1, 1:10)` threw an error with unexpected message.
  Expected match: "length 10, not length 1"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(replace_na(1, 1:10), "length 10, not length 1")
    6. tidyr::replace_na(1, 1:10)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 16. Error: empty call does nothing (@test-replace_na.R#23)  ─────────────────
  'where' must be an environment
  Backtrace:
   1. tidyr::replace_na(df)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 17. Error: missing values are replaced (@test-replace_na.R#29)  ─────────────
  'where' must be an environment
  Backtrace:
   1. tidyr::replace_na(df, list(x = 0))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 18. Error: don't complain about variables that don't exist (@test-replace_na.
  'where' must be an environment
  Backtrace:
   1. tidyr::replace_na(df, list(a = 100, b = 0))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 19. Error: can replace NULLs in list-column (@test-replace_na.R#41)  ────────
  'where' must be an environment
  Backtrace:
   1. tidyr::replace_na(df, list(x = list(1:5)))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 20. Error: missing values in input are missing in output (@test-separate.R#5)
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c("x", "y"))
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 21. Error: positive integer values specific position between characters (@tes
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c("x", "y"), 1)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 22. Error: negative integer values specific position between characters (@tes
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c("x", "y"), -1)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 23. Error: extreme integer values handled sensibly (@test-separate.R#27)  ───
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c("x", "y"), 3)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 24. Error: convert produces integers etc (@test-separate.R#38)  ─────────────
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c("x", "y", "z"), "-", convert = TRUE)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 25. Error: convert keeps characters as character (@test-separate.R#46)  ─────
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c("x", "y"), "-", convert = TRUE)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 26. Error: too many pieces dealt with as requested (@test-separate.R#54)  ───
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(separate(df, x, c("x", "y")), "Additional pieces discarded")
    6. tidyr::separate(df, x, c("x", "y"))
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 27. Error: too few pieces dealt with as requested (@test-separate.R#70)  ────
  'where' must be an environment
  Backtrace:
    1. testthat::expect_warning(separate(df, x, c("x", "y", "z")), "Missing pieces filled")
    6. tidyr::separate(df, x, c("x", "y", "z"))
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 28. Error: preserves grouping (@test-separate.R#83)  ────────────────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::separate(., x, c("a", "b"))
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 29. Error: drops grouping when needed (@test-separate.R#90)  ────────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::separate(., x, c("a", "b"))
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 30. Error: overwrites existing columns (@test-separate.R#97)  ───────────────
  'where' must be an environment
  Backtrace:
    9. tidyr::separate(., x, c("x", "y"))
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 31. Error: drops NA columns (@test-separate.R#105)  ─────────────────────────
  'where' must be an environment
  Backtrace:
   1. tidyr::separate(df, x, c(NA, "y"), 1)
   2. ellipsis::check_dots_used()
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 32. Failure: checks type of `into` and `sep` (@test-separate.R#112)  ────────
  `separate(df, x, "x", FALSE)` threw an error with unexpected message.
  Expected match: "must be either numeric or character"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(separate(df, x, "x", FALSE), "must be either numeric or character")
    6. tidyr::separate(df, x, "x", FALSE)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ── 33. Failure: checks type of `into` and `sep` (@test-separate.R#116)  ────────
  `separate(df, x, FALSE)` threw an error with unexpected message.
  Expected match: "must be a character vector"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(separate(df, x, FALSE), "must be a character vector")
    6. tidyr::separate(df, x, FALSE)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 498 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 33 ]
  1. Error: basic invocation works (@test-complete.R#9) 
  2. Error: preserves grouping (@test-complete.R#16) 
  3. Error: expands empty factors (@test-complete.R#25) 
  4. Error: not drop unspecified levels in complete (@test-complete.R#41) 
  5. Error: default returns first alpha group (@test-extract.R#5) 
  6. Error: can match multiple groups (@test-extract.R#11) 
  7. Error: match failures give NAs (@test-extract.R#18) 
  8. Error: extract keeps characters as character (@test-extract.R#24) 
  9. Error: can combine into multiple columns (@test-extract.R#31) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted