Running 'spelling.R' [0s]
  Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(reprex)
  > 
  > if (rmarkdown::pandoc_available("2.0.0")) {
  +   test_check("reprex")
  + }
  [ FAIL 9 | WARN 0 | SKIP 63 | PASS 51 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (62)
  • On Windows (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-rprofile.R:11:3): .Rprofile local to reprex target directory is consulted & messaged ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::capture_messages(out <- reprex(x, wd = ".", advertise = FALSE)) at test-rprofile.R:11:2
    2. │ └─base::withCallingHandlers(...)
    3. └─reprex::reprex(x, wd = ".", advertise = FALSE)
    4.   └─reprex:::reprex_impl(...)
    5.     └─reprex:::reprex_path(...)
    6.       └─reprex:::reprex_alert(header, type = type, .envir = .envir)
    7.         └─cli (local) cli_fun(text = text, wrap = TRUE, .envir = .envir)
    8.           └─cli:::cli__message(...)
    9.             └─cli:::cli__message_emit(cond)
   10.               ├─base::withRestarts(...)
   11.               │ └─base (local) withOneRestart(expr, restarts[[1L]])
   12.               │   └─base (local) doWithOneRestart(return(expr), restart)
   13.               └─cli:::cli__default_handler(cond)
   14.                 └─cli:::cli_server_default(msg)
   15.                   └─cli:::cli_server_default_safe(msg)
   16.                     ├─base::do.call(app[[type]], msg$args)
   17.                     └─cli (local) `<fn>`(...)
   18.                       └─cli:::clii_alert(app, "alert-success", text, id, class, wrap)
   19.                         └─app$xtext(text)
   20.                           └─cli:::clii__xtext(...)
   21.                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                               └─base::lapply(pars, ansi_trimws)
   23.                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-rprofile.R:37:3): local .Rprofile not reported when it's not there ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::capture_messages(reprex(1 + 1, advertise = FALSE)) at test-rprofile.R:37:2
    2. │ └─base::withCallingHandlers(...)
    3. └─reprex::reprex(1 + 1, advertise = FALSE)
    4.   └─reprex:::reprex_impl(...)
    5.     └─reprex:::reprex_info("Rendering reprex...")
    6.       └─reprex:::reprex_alert(text, type = "info", .envir = .envir)
    7.         └─cli (local) cli_fun(text = text, wrap = TRUE, .envir = .envir)
    8.           └─cli:::cli__message(...)
    9.             └─cli:::cli__message_emit(cond)
   10.               ├─base::withRestarts(...)
   11.               │ └─base (local) withOneRestart(expr, restarts[[1L]])
   12.               │   └─base (local) doWithOneRestart(return(expr), restart)
   13.               └─cli:::cli__default_handler(cond)
   14.                 └─cli:::cli_server_default(msg)
   15.                   └─cli:::cli_server_default_safe(msg)
   16.                     ├─base::do.call(app[[type]], msg$args)
   17.                     └─cli (local) `<fn>`(...)
   18.                       └─cli:::clii_alert(app, "alert-info", text, id, class, wrap)
   19.                         └─app$xtext(text)
   20.                           └─cli:::clii__xtext(...)
   21.                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                               └─base::lapply(pars, ansi_trimws)
   23.                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-utils-clipboard.R:14:3): ingest_clipboard() copes when clipboard not available ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::capture_messages(out <- ingest_clipboard()) at test-utils-clipboard.R:14:2
    2. │ └─base::withCallingHandlers(...)
    3. └─reprex:::ingest_clipboard()
    4.   └─reprex:::reprex_warning("No input provided and clipboard is not available.")
    5.     └─reprex:::reprex_alert(text, type = "warning", .envir = .envir)
    6.       └─cli (local) cli_fun(text = text, wrap = TRUE, .envir = .envir)
    7.         └─cli:::cli__message(...)
    8.           └─cli:::cli__message_emit(cond)
    9.             ├─base::withRestarts(...)
   10.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
   11.             │   └─base (local) doWithOneRestart(return(expr), restart)
   12.             └─cli:::cli__default_handler(cond)
   13.               └─cli:::cli_server_default(msg)
   14.                 └─cli:::cli_server_default_safe(msg)
   15.                   ├─base::do.call(app[[type]], msg$args)
   16.                   └─cli (local) `<fn>`(...)
   17.                     └─cli:::clii_alert(app, "alert-warning", text, id, class, wrap)
   18.                       └─app$xtext(text)
   19.                         └─cli:::clii__xtext(...)
   20.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   21.                             └─base::lapply(pars, ansi_trimws)
   22.                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-utils-io.R:15:3): retrofit_files() works ────────────────────────
  `retrofit_files(wd = "this", outfile = "that")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-utils-io.R:20:3): retrofit_files() works ────────────────────────
  `retrofit_files(outfile = NA)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-utils-io.R:25:3): retrofit_files() works ────────────────────────
  `retrofit_files(outfile = "some/path/blah")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-utils-io.R:30:3): retrofit_files() works ────────────────────────
  `retrofit_files(infile = "a/path/foo.R", outfile = NA)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-utils-io.R:33:3): retrofit_files() works ────────────────────────
  `retrofit_files(infile = "a/path/foo.R", outfile = "other/path/blah")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-utils-ui.R:8:3): reprex_alert() and friends work ────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  
  [ FAIL 9 | WARN 0 | SKIP 63 | PASS 51 ]
  Error: Test failures
  Execution halted