Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [10s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("leiden")
  Unable to set up conda environment r-reticulate
  run in terminal:
  conda init
  conda create -n r-reticulate
  conda environment r-reticulate installed
  Unable to install python modules igraph and leidenalg
  run in terminal:
  conda install -n r-reticulate -c conda-forge vtraag python-igraph pandas umap learn
  python modules igraph and leidenalg installed
  > 
  > test_check("leiden")
  [ FAIL 1 | WARN 0 | SKIP 41 | PASS 0 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • leidenalg not available for testing (41)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_methods.R:73:1): (code run outside of `test_that()`) ────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─tibble::as_tibble(adj_mat, .name_repair = "unique") at test_methods.R:73:0
    2. ├─tibble:::as_tibble.matrix(adj_mat, .name_repair = "unique")
    3. │ ├─tibble::as_tibble(m, ..., validate = validate, .name_repair = .name_repair)
    4. │ └─tibble:::as_tibble.data.frame(m, ..., validate = validate, .name_repair = .name_repair)
    5. │   └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
    6. │     └─tibble:::set_repaired_names(x, repair_hint = TRUE, .name_repair)
    7. │       ├─rlang::set_names(...)
    8. │       └─tibble:::repaired_names(...)
    9. │         ├─tibble:::subclass_name_repair_errors(...)
   10. │         │ └─base::withCallingHandlers(...)
   11. │         └─vctrs::vec_as_names(...)
   12. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   13.   └─rlang::names_inform_repair(orig_names, names)
   14.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   15.       ├─base::withRestarts(...)
   16.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   17.       │   └─base (local) doWithOneRestart(return(expr), restart)
   18.       └─base::signalCondition(cnd)
   19.         ├─base::conditionMessage(cond)
   20.         └─rlang:::conditionMessage.rlang_message(cond)
   21.           └─rlang::cnd_message(c)
   22.             └─rlang:::cnd_message_format(cnd, ...)
   23.               └─rlang (local) cli_format(glue_escape(lines))
   24.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   25.                   └─cli::cli_format(x, .envir = emptyenv())
   26.                     └─cli:::fmt(...)
   27.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   28.                         ├─base::do.call(app[[msg$type]], msg$args)
   29.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-1206", class = NULL)
   30.                           └─cli:::clii_bullets(app, text, id, class)
   31.                             └─base::lapply(...)
   32.                               └─cli (local) FUN(X[[i]], ...)
   33.                                 └─app$text(text[[i]])
   34.                                   └─cli:::clii_text(app, text)
   35.                                     └─app$xtext(text)
   36.                                       └─cli:::clii__xtext(...)
   37.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   38.                                           └─base::lapply(pars, ansi_trimws)
   39.                                             └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 41 | PASS 0 ]
  Error: Test failures
  Execution halted