Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(segclust2d)
  > 
  > test_check("segclust2d")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_segclust.R:23:3): Test of segmentation/clustering ───────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─segclust2d::segclust(...) at test_segclust.R:23:2
    2. └─segclust2d:::segclust.data.frame(...)
    3.   └─segclust2d:::segclust_internal(x, ...)
    4.     └─cli::cli_text(cli::col_grey("{cli::symbol$arrow_right} Number of cluster \\\n    should preferentially be selected \n    according to biological knowledge. Exploring the BIC plot with plot_BIC()\n    can also provide advice to select the number of clusters."))
    5.       └─cli:::cli__message("text", list(text = glue_cmd(..., .envir = .envir)))
    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>`(text = `<cl_gl_dl>`)
   15.                   └─cli:::clii_text(app, text)
   16.                     └─app$xtext(text)
   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 0 | PASS 1 ]
  Error: Test failures
  Execution halted