Running ‘testthat.R’ [50s/87s]
  Running ‘wipe.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgload)
  > 
  > # Needed so that install.packages works correctly
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("pkgload")
  [ FAIL 15 | WARN 0 | SKIP 6 | PASS 324 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • "pkgload" %in% dev_packages() is not TRUE (1)
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-depend.R:5:3): Warn about mismatched version ────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-depend.R:15:3): Error on missing dependencies ───────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-depend.R:43:3): Parse dependencies ──────────────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-extraction.R:10:3): extract_lang issues warning if nothing found ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-extraction.R:10:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─pkgload:::extract_lang(body(f), comp_lang, quote(j))
    8.   └─cli::cli_warn(...)
    9.     ├─rlang::warn(...)
   10.     │ └─rlang:::validate_signal_args(...)
   11.     └─cli::format_warning(escaped_message, .envir = .envir)
   12.       └─cli:::fmt(...)
   13.         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   14.           ├─base::do.call(app[[msg$type]], msg$args)
   15.           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-258", class = NULL)
   16.             └─cli:::clii_bullets(app, text, id, class)
   17.               └─base::lapply(...)
   18.                 └─cli (local) FUN(X[[i]], ...)
   19.                   └─app$text(text[[i]])
   20.                     └─cli:::clii_text(app, text)
   21.                       └─app$xtext(text)
   22.                         └─cli:::clii__xtext(...)
   23.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   24.                             └─base::lapply(pars, ansi_trimws)
   25.                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-help.R:68:3): show_help and shim_question files for devtools-loaded packages ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-help.R:68:2
    2. │ └─base::force(code)
    3. ├─base::suppressMessages(print(h1, type = "text"))
    4. │ └─base::withCallingHandlers(...)
    5. ├─base::print(h1, type = "text")
    6. └─pkgload:::print.dev_topic(h1, type = "text")
    7.   └─cli::cli_inform(c(i = "Rendering development documentation for {.val {x$topic}}"))
    8.     ├─rlang::inform(...)
    9.     │ └─message %||% ""
   10.     └─cli::format_message(message, .envir = .envir)
   11.       └─cli:::fmt(...)
   12.         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   13.           ├─base::do.call(app[[msg$type]], msg$args)
   14.           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-266", class = NULL)
   15.             └─cli:::clii_bullets(app, text, id, class)
   16.               └─base::lapply(...)
   17.                 └─cli (local) FUN(X[[i]], ...)
   18.                   └─app$text(text[[i]])
   19.                     └─cli:::clii_text(app, text)
   20.                       └─app$xtext(text)
   21.                         └─cli:::clii__xtext(...)
   22.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   23.                             └─base::lapply(pars, ansi_trimws)
   24.                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-help.R:104:3): complex expressions are checked ──────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-load-collate.R:12:3): Warned about files missing from collate, but they're still loaded ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─rlang::with_options(...) at test-load-collate.R:12:2
    2. ├─testthat::expect_message(load_all("testCollateMissing"), "a.r")
    3. │ └─testthat:::expect_condition_matching(...)
    4. │   └─testthat:::quasi_capture(...)
    5. │     ├─testthat (local) .capture(...)
    6. │     │ └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. └─pkgload::load_all("testCollateMissing")
    9.   └─pkgload::load_code(path, quiet = quiet)
   10.     └─pkgload:::find_code(path, quiet = quiet)
   11.       └─cli::cli_inform(c(`!` = "Adding files missing in collate: {.file {extra}}"))
   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-321", 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-load-collate.R:24:3): Extra files in collate don't error, but warn ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─rlang::with_options(...) at test-load-collate.R:24:2
    2. ├─testthat::expect_message(load_all("testCollateExtra"), "b.r")
    3. │ └─testthat:::expect_condition_matching(...)
    4. │   └─testthat:::quasi_capture(...)
    5. │     ├─testthat (local) .capture(...)
    6. │     │ └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. └─pkgload::load_all("testCollateExtra")
    9.   └─pkgload::load_code(path, quiet = quiet)
   10.     └─pkgload:::find_code(path, quiet = quiet)
   11.       └─cli::cli_inform(c(`!` = "Skipping missing files: {.file {missing}}"))
   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-328", 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-load-hooks.R:166:3): user onLoad hooks are properly run ─────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-load.R:27:3): `quiet` argument works (#213) ─────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-load.R:27:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─pkgload::load_all(test_path("testLoadHelpers"), quiet = FALSE)
    8.   └─cli::cli_inform(c(i = "Loading {.pkg {package}}"))
    9.     ├─rlang::inform(...)
   10.     │ └─message %||% ""
   11.     └─cli::format_message(message, .envir = .envir)
   12.       └─cli:::fmt(...)
   13.         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   14.           ├─base::do.call(app[[msg$type]], msg$args)
   15.           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-349", class = NULL)
   16.             └─cli:::clii_bullets(app, text, id, class)
   17.               └─base::lapply(...)
   18.                 └─cli (local) FUN(X[[i]], ...)
   19.                   └─app$text(text[[i]])
   20.                     └─cli:::clii_text(app, text)
   21.                       └─app$xtext(text)
   22.                         └─cli:::clii__xtext(...)
   23.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   24.                             └─base::lapply(pars, ansi_trimws)
   25.                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-load.R:44:3): warn_if_conflicts warns for conflicts and both objects are functions ──
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-load.R:140:3): load_all() errors when no DESCRIPTION found ──────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─withr::with_tempdir(...) at test-load.R:140:2
    2. │ └─withr::with_dir(tmp, code)
    3. │   └─base::force(code)
    4. ├─testthat::expect_error(load_all(), class = "pkgload_no_desc") at test-load.R:141:4
    5. │ └─testthat:::expect_condition_matching(...)
    6. │   └─testthat:::quasi_capture(...)
    7. │     ├─testthat (local) .capture(...)
    8. │     │ └─base::withCallingHandlers(...)
    9. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─pkgload::load_all()
   11.   └─pkgload::pkg_path(path)
   12.     └─base::tryCatch(...)
   13.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   14.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15.           └─value[[3L]](cond)
   16.             └─cli::cli_abort(msg, class = "pkgload_no_desc")
   17.               └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   18.                 └─rlang:::signal_abort(cnd, .file)
   19.                   └─base::signalCondition(cnd)
   20.                     ├─base::conditionMessage(cond)
   21.                     └─rlang:::conditionMessage.rlang_error(cond)
   22.                       └─rlang::cnd_message(c)
   23.                         └─rlang:::cnd_message_format(cnd, ...)
   24.                           └─rlang (local) cli_format(glue_escape(lines))
   25.                             └─rlang:::.rlang_cli_format(x, cli::format_error)
   26.                               └─cli::cli_format(x, .envir = emptyenv())
   27.                                 └─cli:::fmt(...)
   28.                                   └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   29.                                     ├─base::do.call(app[[msg$type]], msg$args)
   30.                                     └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-375", class = NULL)
   31.                                       └─cli:::clii_bullets(app, text, id, class)
   32.                                         └─base::lapply(...)
   33.                                           └─cli (local) FUN(X[[i]], ...)
   34.                                             └─app$text(text[[i]])
   35.                                               └─cli:::clii_text(app, text)
   36.                                                 └─app$xtext(text)
   37.                                                   └─cli:::clii__xtext(...)
   38.                                                     └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   39.                                                       └─base::lapply(pars, ansi_trimws)
   40.                                                         └─cli (local) FUN(X[[i]], ...)
  ── Error (test-namespace.R:47:3): Missing exports don't result in error ────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(load_all("testMissingNsObject")) at test-namespace.R:47:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─pkgload::load_all("testMissingNsObject")
    8.   └─pkgload:::setup_ns_exports(path)
    9.     └─cli::cli_warn(...)
   10.       ├─rlang::warn(...)
   11.       │ └─rlang:::validate_signal_args(...)
   12.       └─cli::format_warning(escaped_message, .envir = .envir)
   13.         └─cli:::fmt(...)
   14.           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   15.             ├─base::do.call(app[[msg$type]], msg$args)
   16.             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-383", class = NULL)
   17.               └─cli:::clii_bullets(app, text, id, class)
   18.                 └─base::lapply(...)
   19.                   └─cli (local) FUN(X[[i]], ...)
   20.                     └─app$text(text[[i]])
   21.                       └─cli:::clii_text(app, text)
   22.                         └─app$xtext(text)
   23.                           └─cli:::clii__xtext(...)
   24.                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   25.                               └─base::lapply(pars, ansi_trimws)
   26.                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-shim.R:59:3): shimmed system.file respects mustWork ─────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-source.R:2:3): multiplication works ─────────────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─testthat::expect_snapshot(...) at test-source.R:2: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-464", 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 15 | WARN 0 | SKIP 6 | PASS 324 ]
  Error: Test failures
  Execution halted
Running the tests in ‘tests/wipe.R’ failed.
Complete output:
  > stopifnot(length(.dynLibs()) > 0)
  > pkgload::load_all("empty")
  Error in nchar(xs) : 
    number of characters is not computable in "bytes" encoding, element 1
  Calls: <Anonymous> ... <Anonymous> -> clii__xtext -> ansi_strwrap -> lapply -> FUN
  Execution halted