Running ‘testthat.R’ [2s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(proverbs)
  > 
  > test_check("proverbs")
  That translation is not available!
   ⚠ Use the translations() function to see a list of available translations. 
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 2 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-proverb.R:10:3): kjv works ──────────────────────────────────────
  Error in `base::nchar(strip_style(x), ...)`: width is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_output(proverb("kjv")) at test-proverb.R:10:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─proverbs::proverb("kjv")
   11.   ├─base::cat(crayon::col_align(output, align = "center", width = 20))
   12.   └─crayon::col_align(output, align = "center", width = 20)
   13.     └─crayon::col_nchar(text, type = type)
   14.       └─base::nchar(strip_style(x), ...)
  ── Error (test-proverb.R:16:3): web works ──────────────────────────────────────
  Error in `base::nchar(strip_style(x), ...)`: width is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_output(proverb("web")) at test-proverb.R:16:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─proverbs::proverb("web")
   11.   ├─base::cat(crayon::col_align(output, align = "center", width = 20))
   12.   └─crayon::col_align(output, align = "center", width = 20)
   13.     └─crayon::col_nchar(text, type = type)
   14.       └─base::nchar(strip_style(x), ...)
  ── Error (test-proverb.R:22:3): webbe works ────────────────────────────────────
  Error in `base::nchar(strip_style(x), ...)`: width is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_output(proverb("webbe")) at test-proverb.R:22:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─proverbs::proverb("webbe")
   11.   ├─base::cat(crayon::col_align(output, align = "center", width = 20))
   12.   └─crayon::col_align(output, align = "center", width = 20)
   13.     └─crayon::col_nchar(text, type = type)
   14.       └─base::nchar(strip_style(x), ...)
  ── Error (test-proverb.R:28:3): almeida works ──────────────────────────────────
  Error in `base::nchar(strip_style(x), ...)`: width is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_output(proverb("almeida")) at test-proverb.R:28:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─proverbs::proverb("almeida")
   11.   ├─base::cat(crayon::col_align(output, align = "center", width = 20))
   12.   └─crayon::col_align(output, align = "center", width = 20)
   13.     └─crayon::col_nchar(text, type = type)
   14.       └─base::nchar(strip_style(x), ...)
  ── Error (test-proverb.R:34:3): rccv works ─────────────────────────────────────
  Error in `base::nchar(strip_style(x), ...)`: width is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_output(proverb("rccv")) at test-proverb.R:34:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─proverbs::proverb("rccv")
   11.   ├─base::cat(crayon::col_align(output, align = "center", width = 20))
   12.   └─crayon::col_align(output, align = "center", width = 20)
   13.     └─crayon::col_nchar(text, type = type)
   14.       └─base::nchar(strip_style(x), ...)
  ── Failure (test-translations.R:2:3): translations prints out ──────────────────
  `translations()` threw an error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(translations(), NA) at test-translations.R:2:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─proverbs::translations()
    7.   └─cli::cli_li(translations)
    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>`(items = `<list>`, id = "cli-2553110-6", class = NULL)
   18.                 └─cli:::clii_li(app, items, id, class)
   19.                   └─app$item_text(type, names(items)[i], cnt_id, items[[i]])
   20.                     └─cli:::clii__item_text(app, type, name, cnt_id, items, .list = .list)
   21.                       └─app$xtext(...)
   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]], ...)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 2 ]
  Error: Test failures
  Execution halted