Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(docreview)
  > 
  > test_check("docreview")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 10 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-package_review.R:5:3): package_review can exclude sections from review ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(package_review(pkg_path, just_func)) at test-package_review.R:5:2
    2. │ └─base::withCallingHandlers(...)
    3. └─docreview::package_review(pkg_path, just_func)
    4.   └─docreview:::function_results_display(...)
    5.     └─cli::cli(...)
    6.       └─cli:::cli__message_emit(cond)
    7.         ├─base::withRestarts(...)
    8.         │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9.         │   └─base (local) doWithOneRestart(return(expr), restart)
   10.         └─cli:::cli__default_handler(cond)
   11.           └─cli:::cli_server_default(msg)
   12.             └─cli:::cli_server_default_safe(msg)
   13.               ├─base::do.call(app[[type]], msg$args)
   14.               └─cli (local) `<fn>`(`<cli_mssg>`, `<cli_mssg>`, `<cli_mssg>`)
   15.                 └─cli:::cli__fmt(list(...), collapse = TRUE, app = app)
   16.                   ├─base::do.call(app[[msg$type]], msg$args)
   17.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-9", 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-package_review.R:17:3): package_review can raise errors ─────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-package_review.R:17: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. ├─base::suppressMessages(package_review(pkg_path, error))
    8. │ └─base::withCallingHandlers(...)
    9. └─docreview::package_review(pkg_path, error)
   10.   └─docreview:::function_results_display(...)
   11.     └─cli::cli(...)
   12.       └─cli:::cli__message_emit(cond)
   13.         ├─base::withRestarts(...)
   14.         │ └─base (local) withOneRestart(expr, restarts[[1L]])
   15.         │   └─base (local) doWithOneRestart(return(expr), restart)
   16.         └─cli:::cli__default_handler(cond)
   17.           └─cli:::cli_server_default(msg)
   18.             └─cli:::cli_server_default_safe(msg)
   19.               ├─base::do.call(app[[type]], msg$args)
   20.               └─cli (local) `<fn>`(`<cli_mssg>`, `<cli_mssg>`, `<cli_mssg>`)
   21.                 └─cli:::cli__fmt(list(...), collapse = TRUE, app = app)
   22.                   ├─base::do.call(app[[msg$type]], msg$args)
   23.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-18", class = NULL)
   24.                     └─cli:::clii_bullets(app, text, id, class)
   25.                       └─base::lapply(...)
   26.                         └─cli (local) FUN(X[[i]], ...)
   27.                           └─app$text(text[[i]])
   28.                             └─cli:::clii_text(app, text)
   29.                               └─app$xtext(text)
   30.                                 └─cli:::clii__xtext(...)
   31.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   32.                                     └─base::lapply(pars, ansi_trimws)
   33.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-package_review.R:31:3): package_review can set custom thresholds ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(package_review(pkg_path, thresholds)) at test-package_review.R:31:2
    2. │ └─base::withCallingHandlers(...)
    3. └─docreview::package_review(pkg_path, thresholds)
    4.   └─docreview:::function_results_display(...)
    5.     └─cli::cli(...)
    6.       └─cli:::cli__message_emit(cond)
    7.         ├─base::withRestarts(...)
    8.         │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9.         │   └─base (local) doWithOneRestart(return(expr), restart)
   10.         └─cli:::cli__default_handler(cond)
   11.           └─cli:::cli_server_default(msg)
   12.             └─cli:::cli_server_default_safe(msg)
   13.               ├─base::do.call(app[[type]], msg$args)
   14.               └─cli (local) `<fn>`(`<cli_mssg>`, `<cli_mssg>`, `<cli_mssg>`)
   15.                 └─cli:::cli__fmt(list(...), collapse = TRUE, app = app)
   16.                   ├─base::do.call(app[[msg$type]], msg$args)
   17.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-27", 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 3 | WARN 0 | SKIP 0 | PASS 10 ]
  Error: Test failures
  Execution halted