Running ‘testthat.R’ [4s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(readabs)
  Environment variable 'R_READABS_PATH' is unset. Downloaded files will be saved in a temporary directory.
  You can set 'R_READABS_PATH' at any time. To set it for the rest of this session, use
  	Sys.setenv(R_READABS_PATH = <path>)
  > 
  > test_check("readabs")
  [ FAIL 3 | WARN 0 | SKIP 26 | PASS 51 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (26)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-old-functions.R:11:3): Old read_abs_data() function imports a spreadsheet ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(read_abs_data(filepath, "Data1")) at test-old-functions.R:11:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readabs::read_abs_data(filepath, "Data1")
    7. │ └─readxl::read_excel(path = path, sheet = sheet)
    8. │   └─readxl:::read_excel_(...)
    9. │     └─readxl:::set_readxl_names(...)
   10. │       ├─tibble::as_tibble(l, .name_repair = .name_repair)
   11. │       └─tibble:::as_tibble.list(l, .name_repair = .name_repair)
   12. │         └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
   13. │           └─tibble:::set_repaired_names(x, repair_hint = TRUE, .name_repair)
   14. │             ├─rlang::set_names(...)
   15. │             └─tibble:::repaired_names(...)
   16. │               ├─tibble:::subclass_name_repair_errors(...)
   17. │               │ └─base::withCallingHandlers(...)
   18. │               └─vctrs::vec_as_names(...)
   19. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   20.   └─rlang::names_inform_repair(orig_names, names)
   21.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   22.       ├─base::withRestarts(...)
   23.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   24.       │   └─base (local) doWithOneRestart(return(expr), restart)
   25.       └─base::signalCondition(cnd)
   26.         ├─base::conditionMessage(cond)
   27.         └─rlang:::conditionMessage.rlang_message(cond)
   28.           └─rlang::cnd_message(c)
   29.             └─rlang:::cnd_message_format(cnd, ...)
   30.               └─rlang (local) cli_format(glue_escape(lines))
   31.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   32.                   └─cli::cli_format(x, .envir = emptyenv())
   33.                     └─cli:::fmt(...)
   34.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   35.                         ├─base::do.call(app[[msg$type]], msg$args)
   36.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-18", class = NULL)
   37.                           └─cli:::clii_bullets(app, text, id, class)
   38.                             └─base::lapply(...)
   39.                               └─cli (local) FUN(X[[i]], ...)
   40.                                 └─app$text(text[[i]])
   41.                                   └─cli:::clii_text(app, text)
   42.                                     └─app$xtext(text)
   43.                                       └─cli:::clii__xtext(...)
   44.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   45.                                           └─base::lapply(pars, ansi_trimws)
   46.                                             └─cli (local) FUN(X[[i]], ...)
  ── Error (test-old-functions.R:23:3): Old read_abs_metadata() function imports a spreadsheet ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(read_abs_metadata(filepath, "Data1")) at test-old-functions.R:23:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readabs::read_abs_metadata(filepath, "Data1")
    7. │ └─readxl::read_excel(path = path, sheet = sheet, col_names = FALSE)
    8. │   └─readxl:::read_excel_(...)
    9. │     └─readxl:::set_readxl_names(...)
   10. │       ├─tibble::as_tibble(l, .name_repair = .name_repair)
   11. │       └─tibble:::as_tibble.list(l, .name_repair = .name_repair)
   12. │         └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
   13. │           └─tibble:::set_repaired_names(x, repair_hint = TRUE, .name_repair)
   14. │             ├─rlang::set_names(...)
   15. │             └─tibble:::repaired_names(...)
   16. │               ├─tibble:::subclass_name_repair_errors(...)
   17. │               │ └─base::withCallingHandlers(...)
   18. │               └─vctrs::vec_as_names(...)
   19. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   20.   └─rlang::names_inform_repair(orig_names, names)
   21.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   22.       ├─base::withRestarts(...)
   23.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   24.       │   └─base (local) doWithOneRestart(return(expr), restart)
   25.       └─base::signalCondition(cnd)
   26.         ├─base::conditionMessage(cond)
   27.         └─rlang:::conditionMessage.rlang_message(cond)
   28.           └─rlang::cnd_message(c)
   29.             └─rlang:::cnd_message_format(cnd, ...)
   30.               └─rlang (local) cli_format(glue_escape(lines))
   31.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   32.                   └─cli::cli_format(x, .envir = emptyenv())
   33.                     └─cli:::fmt(...)
   34.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   35.                         ├─base::do.call(app[[msg$type]], msg$args)
   36.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-120", class = NULL)
   37.                           └─cli:::clii_bullets(app, text, id, class)
   38.                             └─base::lapply(...)
   39.                               └─cli (local) FUN(X[[i]], ...)
   40.                                 └─app$text(text[[i]])
   41.                                   └─cli:::clii_text(app, text)
   42.                                     └─app$xtext(text)
   43.                                       └─cli:::clii__xtext(...)
   44.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   45.                                           └─base::lapply(pars, ansi_trimws)
   46.                                             └─cli (local) FUN(X[[i]], ...)
  ── Error (test-read_awe.R:3:3): tidy_awe() returns tidied data frame ───────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─readxl::read_excel(...) at test-read_awe.R:3:2
    2. │ └─readxl:::read_excel_(...)
    3. │   └─readxl:::set_readxl_names(...)
    4. │     ├─tibble::as_tibble(l, .name_repair = .name_repair)
    5. │     └─tibble:::as_tibble.list(l, .name_repair = .name_repair)
    6. │       └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
    7. │         └─tibble:::set_repaired_names(x, repair_hint = TRUE, .name_repair)
    8. │           ├─rlang::set_names(...)
    9. │           └─tibble:::repaired_names(...)
   10. │             ├─tibble:::subclass_name_repair_errors(...)
   11. │             │ └─base::withCallingHandlers(...)
   12. │             └─vctrs::vec_as_names(...)
   13. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   14.   └─rlang::names_inform_repair(orig_names, names)
   15.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   16.       ├─base::withRestarts(...)
   17.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   18.       │   └─base (local) doWithOneRestart(return(expr), restart)
   19.       └─base::signalCondition(cnd)
   20.         ├─base::conditionMessage(cond)
   21.         └─rlang:::conditionMessage.rlang_message(cond)
   22.           └─rlang::cnd_message(c)
   23.             └─rlang:::cnd_message_format(cnd, ...)
   24.               └─rlang (local) cli_format(glue_escape(lines))
   25.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   26.                   └─cli::cli_format(x, .envir = emptyenv())
   27.                     └─cli:::fmt(...)
   28.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   29.                         ├─base::do.call(app[[msg$type]], msg$args)
   30.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-138", class = NULL)
   31.                           └─cli:::clii_bullets(app, text, id, class)
   32.                             └─base::lapply(...)
   33.                               └─cli (local) FUN(X[[i]], ...)
   34.                                 └─app$text(text[[i]])
   35.                                   └─cli:::clii_text(app, text)
   36.                                     └─app$xtext(text)
   37.                                       └─cli:::clii__xtext(...)
   38.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   39.                                           └─base::lapply(pars, ansi_trimws)
   40.                                             └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 3 | WARN 0 | SKIP 26 | PASS 51 ]
  Error: Test failures
  Execution halted