Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("pkglite")
  > 
  > test_check("pkglite")
                 path_rel format
  1 vignettes/example.bib   text
  2    vignettes/pkg1.Rmd   text
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 102 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-independent-test_file_spec.R:58:3): Check print.file_spec() is returning the right file_spec() object ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─pkglite:::print.file_spec(fs_source) at test-independent-test_file_spec.R:58:2
    2.   └─cli::cli_li("Relative path: {.path {x$path}}")
    3.     └─cli:::cli__message(...)
    4.       └─cli:::cli__message_emit(cond)
    5.         ├─base::withRestarts(...)
    6.         │ └─base (local) withOneRestart(expr, restarts[[1L]])
    7.         │   └─base (local) doWithOneRestart(return(expr), restart)
    8.         └─cli:::cli__default_handler(cond)
    9.           └─cli:::cli_server_default(msg)
   10.             └─cli:::cli_server_default_safe(msg)
   11.               ├─base::do.call(app[[type]], msg$args)
   12.               └─cli (local) `<fn>`(items = `<list>`, id = "cli-24140-7", class = NULL)
   13.                 └─cli:::clii_li(app, items, id, class)
   14.                   └─app$item_text(type, names(items)[i], cnt_id, items[[i]])
   15.                     └─cli:::clii__item_text(app, type, name, cnt_id, items, .list = .list)
   16.                       └─app$xtext(...)
   17.                         └─cli:::clii__xtext(...)
   18.                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   19.                             └─base::lapply(pars, ansi_trimws)
   20.                               └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 5 | PASS 102 ]
  Deleting unused snapshots:
  • independent_test_pack/fc_to_text1.txt
  • independent_test_pack/fc_to_text2.txt
  • independent_test_pack/file_to_vec.txt
  • independent_test_pack/pack.txt
  • independent_test_pack/read_file_text1.txt
  • independent_test_pack/read_file_text2.txt
  • independent_test_pack/read_file_text3.txt
  • independent_test_pack/read_file_text4.txt
  • independent_test_pack/read_file_text5.txt
  Error: Test failures
  Execution halted