Running ‘testthat.R’ [22s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dataRetrieval)
  > test_check("dataRetrieval")
  [ FAIL 1 | WARN 0 | SKIP 42 | PASS 28 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (42)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (tests_general.R:449:3): profiles ─────────────────────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─dataRetrieval::readWQPdata(...) at tests_general.R:449:2
    2. │ └─dataRetrieval::importWQP(...)
    3. │   ├─base::suppressWarnings(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─readr::read_delim(...)
    6. │     └─vroom::vroom(...)
    7. │       └─vroom:::vroom_(...)
    8. ├─vroom (local) `<fn>`(`<col_spec>`, 19L, `<chr>`, NULL, "unique")
    9. │ └─vctrs::vec_as_names(col_names, repair = name_repair)
   10. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   11.   └─rlang::names_inform_repair(orig_names, names)
   12.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   13.       ├─base::withRestarts(...)
   14.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   15.       │   └─base (local) doWithOneRestart(return(expr), restart)
   16.       └─base::signalCondition(cnd)
   17.         ├─base::conditionMessage(cond)
   18.         └─rlang:::conditionMessage.rlang_message(cond)
   19.           └─rlang::cnd_message(c)
   20.             └─rlang:::cnd_message_format(cnd, ...)
   21.               └─rlang (local) cli_format(glue_escape(lines))
   22.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   23.                   └─cli::cli_format(x, .envir = emptyenv())
   24.                     └─cli:::fmt(...)
   25.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   26.                         ├─base::do.call(app[[msg$type]], msg$args)
   27.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-30", class = NULL)
   28.                           └─cli:::clii_bullets(app, text, id, class)
   29.                             └─base::lapply(...)
   30.                               └─cli (local) FUN(X[[i]], ...)
   31.                                 └─app$text(text[[i]])
   32.                                   └─cli:::clii_text(app, text)
   33.                                     └─app$xtext(text)
   34.                                       └─cli:::clii__xtext(...)
   35.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   36.                                           └─base::lapply(pars, ansi_trimws)
   37.                                             └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 42 | PASS 28 ]
  Error: Test failures
  Execution halted