Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [52s/94s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(usethis)
  > 
  > test_check("usethis")
  [ FAIL 6 | WARN 29 | SKIP 38 | PASS 651 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Not on GitHub Actions, Travis, or Appveyor (3)
  • On CRAN (35)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-lifecycle.R:6:3): use_lifecycle() imports badges ────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Failure (test-lifecycle.R:10:3): use_lifecycle() imports badges ─────────────
  file_exists(proj_path(...)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─usethis:::expect_proj_file("man", "figures", "lifecycle-stable.svg") at test-lifecycle.R:10:2
   2.   └─testthat::expect_true(file_exists(proj_path(...))) at tests/testthat/helper.R:135:20
  ── Error (test-pipe.R:16:3): use_pipe(export = FALSE) adds roxygen to package doc ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─usethis::use_pipe(export = FALSE) at test-pipe.R:16:2
    2.   └─usethis::use_import_from("magrittr", "%>%")
    3.     └─usethis:::roxygen_update_ns(load)
    4.       ├─utils::capture.output(...)
    5.       │ └─base::withVisible(...elt(i))
    6.       ├─base::suppressMessages(roxygen2::roxygenise(proj_get(), "namespace"))
    7.       │ └─base::withCallingHandlers(...)
    8.       └─roxygen2::roxygenise(proj_get(), "namespace")
    9.         └─roxygen2 (local) load_code(base_path)
   10.           └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   11.             └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   12.               ├─rlang::inform(...)
   13.               │ └─message %||% ""
   14.               └─cli::format_message(message, .envir = .envir)
   15.                 └─cli:::fmt(...)
   16.                   └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   17.                     ├─base::do.call(app[[msg$type]], msg$args)
   18.                     └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-45", class = NULL)
   19.                       └─cli:::clii_bullets(app, text, id, class)
   20.                         └─base::lapply(...)
   21.                           └─cli (local) FUN(X[[i]], ...)
   22.                             └─app$text(text[[i]])
   23.                               └─cli:::clii_text(app, text)
   24.                                 └─app$xtext(text)
   25.                                   └─cli:::clii__xtext(...)
   26.                                     └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   27.                                       └─base::lapply(pars, ansi_trimws)
   28.                                         └─cli (local) FUN(X[[i]], ...)
  ── Error (test-use_import_from.R:4:3): use_import_from() imports the related package & adds line to package doc ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─usethis::use_import_from("tibble", "tibble") at test-use_import_from.R:4:2
    2.   └─usethis:::roxygen_update_ns(load)
    3.     ├─utils::capture.output(...)
    4.     │ └─base::withVisible(...elt(i))
    5.     ├─base::suppressMessages(roxygen2::roxygenise(proj_get(), "namespace"))
    6.     │ └─base::withCallingHandlers(...)
    7.     └─roxygen2::roxygenise(proj_get(), "namespace")
    8.       └─roxygen2 (local) load_code(base_path)
    9.         └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   10.           └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   11.             ├─rlang::inform(...)
   12.             │ └─message %||% ""
   13.             └─cli::format_message(message, .envir = .envir)
   14.               └─cli:::fmt(...)
   15.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                   ├─base::do.call(app[[msg$type]], msg$args)
   17.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-62", class = NULL)
   18.                     └─cli:::clii_bullets(app, text, id, class)
   19.                       └─base::lapply(...)
   20.                         └─cli (local) FUN(X[[i]], ...)
   21.                           └─app$text(text[[i]])
   22.                             └─cli:::clii_text(app, text)
   23.                               └─app$xtext(text)
   24.                                 └─cli:::clii__xtext(...)
   25.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                     └─base::lapply(pars, ansi_trimws)
   27.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-use_import_from.R:13:3): use_import_from() adds one line for each function ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─usethis::use_import_from("tibble", c("tibble", "enframe", "deframe")) at test-use_import_from.R:13:2
    2.   └─usethis:::roxygen_update_ns(load)
    3.     ├─utils::capture.output(...)
    4.     │ └─base::withVisible(...elt(i))
    5.     ├─base::suppressMessages(roxygen2::roxygenise(proj_get(), "namespace"))
    6.     │ └─base::withCallingHandlers(...)
    7.     └─roxygen2::roxygenise(proj_get(), "namespace")
    8.       └─roxygen2 (local) load_code(base_path)
    9.         └─pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
   10.           └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
   11.             ├─rlang::inform(...)
   12.             │ └─message %||% ""
   13.             └─cli::format_message(message, .envir = .envir)
   14.               └─cli:::fmt(...)
   15.                 └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                   ├─base::do.call(app[[msg$type]], msg$args)
   17.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-69", class = NULL)
   18.                     └─cli:::clii_bullets(app, text, id, class)
   19.                       └─base::lapply(...)
   20.                         └─cli (local) FUN(X[[i]], ...)
   21.                           └─app$text(text[[i]])
   22.                             └─cli:::clii_text(app, text)
   23.                               └─app$xtext(text)
   24.                                 └─cli:::clii__xtext(...)
   25.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                     └─base::lapply(pars, ansi_trimws)
   27.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-vignette.R:12:3): use_vignette() gives useful errors ────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─testthat::expect_snapshot(...) at test-vignette.R:12:2
    2.   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    3.     ├─base::unlist(lapply(results, replay))
    4.     └─base::lapply(results, replay)
    5.       └─testthat (local) FUN(X[[i]], ...)
    6.         ├─testthat:::snapshot_replay(x, state, transform = transform, cnd_class = cnd_class)
    7.         └─testthat:::snapshot_replay.condition(...)
    8.           └─rlang::cnd_message(x, prefix = TRUE)
    9.             └─rlang:::cnd_message_format_prefixed(cnd, ..., parent = FALSE)
   10.               └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   11.                 └─rlang (local) cli_format(glue_escape(lines))
   12.                   └─rlang:::.rlang_cli_format(x, cli::format_error)
   13.                     └─cli::cli_format(x, .envir = emptyenv())
   14.                       └─cli:::fmt(...)
   15.                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                           ├─base::do.call(app[[msg$type]], msg$args)
   17.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-107", class = NULL)
   18.                             └─cli:::clii_bullets(app, text, id, class)
   19.                               └─base::lapply(...)
   20.                                 └─cli (local) FUN(X[[i]], ...)
   21.                                   └─app$text(text[[i]])
   22.                                     └─cli:::clii_text(app, text)
   23.                                       └─app$xtext(text)
   24.                                         └─cli:::clii__xtext(...)
   25.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                             └─base::lapply(pars, ansi_trimws)
   27.                                               └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 6 | WARN 29 | SKIP 38 | PASS 651 ]
  Error: Test failures
  Execution halted