Running 'testthat.R' [39s]
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")
  [ FAIL 17 | WARN 0 | SKIP 84 | PASS 965 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (84)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-expand.R:212:3): expand() respects `.name_repair` ───────────────
  `out <- df %>% expand(x = x, x = x, .name_repair = "unique")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-expand.R:215:3): expand() respects `.name_repair` ───────────────
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out' not found
  Backtrace:
      ▆
   1. └─testthat::expect_named(out, c("x...1", "x...2")) at test-expand.R:215:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-expand.R:221:3): crossing() / nesting() respect `.name_repair` ──
  `out <- crossing(x = x, x = x, .name_repair = "unique")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-expand.R:224:3): crossing() / nesting() respect `.name_repair` ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out' not found
  Backtrace:
      ▆
   1. └─testthat::expect_named(out, c("x...1", "x...2")) at test-expand.R:224:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-pivot-long.R:382:3): `names_transform` is validated ─────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-pivot-long.R:400:3): `values_transform` is validated ────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-pivot-wide.R:260:3): `names_vary` is validated ──────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-pivot-wide.R:510:3): values_fn is validated ─────────────────────
  `(expect_error(pivot_wider(df, values_fn = 1)))` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-pivot-wide.R:691:3): `unused_fn` is validated ───────────────────
  `(expect_error(pivot_wider(df, id_cols = id, unused_fn = 1)))` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rectangle.R:436:3): can unnest a vector with a mix of named/unnamed elements (#1200 comment) ──
  `out <- unnest_wider(df, x, names_sep = "_")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rectangle.R:437:3): can unnest a vector with a mix of named/unnamed elements (#1200 comment) ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out' not found
  Backtrace:
      ▆
   1. └─testthat::expect_identical(out$x_a, c(1L, NA)) at test-rectangle.R:437:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-rectangle.R:450:3): unique name repair is done on the elements before applying `names_sep` (#1200 comment) ──
  `out <- unnest_wider(df, col, names_sep = "_")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rectangle.R:451:3): unique name repair is done on the elements before applying `names_sep` (#1200 comment) ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out' not found
  Backtrace:
      ▆
   1. └─testthat::expect_named(out, "col_...1") at test-rectangle.R:451:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-rectangle.R:468:3): output structure is the same whether or not `names_sep` is applied (#1200 comment) ──
  `out1 <- unnest_wider(df, col)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rectangle.R:469:3): output structure is the same whether or not `names_sep` is applied (#1200 comment) ──
  `out2 <- unnest_wider(df, col, names_sep = "_")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-rectangle.R:471:3): output structure is the same whether or not `names_sep` is applied (#1200 comment) ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out1' not found
  Backtrace:
      ▆
   1. └─testthat::expect_identical(out1$a, c(1, NA, NA)) at test-rectangle.R:471:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-rectangle.R:891:3): `transform` is validated ────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  
  [ FAIL 17 | WARN 0 | SKIP 84 | PASS 965 ]
  Error: Test failures
  Execution halted