Running ‘testthat.R’ [130s/113s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > # Need to use qualified call, this is checked in helper-print.R
  > testthat::test_check("dm")
  Loading required package: dm
  
  Attaching package: 'dm'
  
  The following object is masked from 'package:stats':
  
      filter
  
  Starting 2 test processes
  [ FAIL 6 | WARN 0 | SKIP 139 | PASS 770 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • COMPOUND (1)
  • FIXME (2)
  • FIXME: Unstable on GHA? (1)
  • Installed tidyselect is version 1.1.2; but 1.1.2.9000 is required (1)
  • Need to think about it (1)
  • Needs https://github.com/tidyverse/dbplyr/pull/649 (2)
  • On CRAN (105)
  • Slow test. To run, set CI=true (6)
  • dm argument (1)
  • does not work on `duckdb`, `maria`, `df` (1)
  • not testing deprecated cdm_nycflights13(): test too slow (1)
  • not testing deprecated learning from DB: test too slow (1)
  • only works on `mssql` (4)
  • only works on `mssql`, `postgres` (4)
  • only works on `mssql`, `postgres`, `maria` (5)
  • only works on `postgres` (2)
  • only works on `sqlite` (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-bind.R:42:3): auto-renaming works ───────────────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─dm:::expect_equivalent_dm(...) at test-bind.R:42:2
    2. │ ├─dm_get_tables_impl(object) %>% map(collect) at tests/testthat/helper-expectations.R:6:2
    3. │ └─dm:::dm_get_tables_impl(object)
    4. │   └─dm:::dm_get_def(x, quiet)
    5. │     └─dm:::check_dm(x)
    6. │       └─dm::is_dm(dm)
    7. ├─purrr::map(., collect)
    8. ├─dm:::expect_name_repair_message(...)
    9. │ └─testthat::expect_message(out <- expr) at tests/testthat/helper-expectations.R:49:2
   10. │   └─testthat:::expect_condition_matching(...)
   11. │     └─testthat:::quasi_capture(...)
   12. │       ├─testthat (local) .capture(...)
   13. │       │ └─base::withCallingHandlers(...)
   14. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   15. ├─dm::dm_bind(...)
   16. │ └─dm:::repair_names_vec(table_names, repair, quiet)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─vctrs::vec_as_names(names, repair = repair, quiet = quiet)
   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-150", 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-bind.R:102:3): output dev vctrs ─────────────────────────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-bind.R:117:3): output for compound keys dev vctrs ───────────────
  `{ ... }` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-add-tbl.R:65:3): dm_add_tbl() works ─────────────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─dm:::expect_name_repair_message(...) at test-add-tbl.R:65:2
    2. │ └─testthat::expect_message(out <- expr) at tests/testthat/helper-expectations.R:49:2
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─dm:::expect_equivalent_dm(...)
    9. │ ├─dm_get_tables_impl(object) %>% map(collect) at tests/testthat/helper-expectations.R:6:2
   10. │ └─dm:::dm_get_tables_impl(object)
   11. │   └─dm:::dm_get_def(x, quiet)
   12. │     └─dm:::check_dm(x)
   13. │       └─dm::is_dm(dm)
   14. ├─purrr::map(., collect)
   15. ├─dm::dm_add_tbl(dm_for_filter(), tf_1 = data_card_1(), repair = "unique")
   16. │ └─dm:::repair_table_names(old_names, new_names, repair, quiet)
   17. │   └─dm:::repair_names_vec(c(old_names, new_names), repair, quiet)
   18. │     ├─base::withCallingHandlers(...)
   19. │     └─vctrs::vec_as_names(names, repair = repair, quiet = quiet)
   20. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   21.   └─rlang::names_inform_repair(orig_names, names)
   22.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   23.       ├─base::withRestarts(...)
   24.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   25.       │   └─base (local) doWithOneRestart(return(expr), restart)
   26.       └─base::signalCondition(cnd)
   27.         ├─base::conditionMessage(cond)
   28.         └─rlang:::conditionMessage.rlang_message(cond)
   29.           └─rlang::cnd_message(c)
   30.             └─rlang:::cnd_message_format(cnd, ...)
   31.               └─rlang (local) cli_format(glue_escape(lines))
   32.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   33.                   └─cli::cli_format(x, .envir = emptyenv())
   34.                     └─cli:::fmt(...)
   35.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   36.                         ├─base::do.call(app[[msg$type]], msg$args)
   37.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-472", class = NULL)
   38.                           └─cli:::clii_bullets(app, text, id, class)
   39.                             └─base::lapply(...)
   40.                               └─cli (local) FUN(X[[i]], ...)
   41.                                 └─app$text(text[[i]])
   42.                                   └─cli:::clii_text(app, text)
   43.                                     └─app$xtext(text)
   44.                                       └─cli:::clii__xtext(...)
   45.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   46.                                           └─base::lapply(pars, ansi_trimws)
   47.                                             └─cli (local) FUN(X[[i]], ...)
  ── Error (test-dplyr-src.R:42:3): 'copy_to.dm()' works ─────────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─dm:::expect_equivalent_dm(...) at test-dplyr-src.R:42:2
    2. │ ├─dm_get_tables_impl(object) %>% map(collect) at tests/testthat/helper-expectations.R:6:2
    3. │ └─dm:::dm_get_tables_impl(object)
    4. │   └─dm:::dm_get_def(x, quiet)
    5. │     └─dm:::check_dm(x)
    6. │       └─dm::is_dm(dm)
    7. ├─purrr::map(., collect)
    8. ├─dm:::suppress_mssql_message(...)
    9. ├─dm:::expect_name_repair_message(...) at tests/testthat/helper-skip.R:45:4
   10. │ └─testthat::expect_message(out <- expr) at tests/testthat/helper-expectations.R:49:2
   11. │   └─testthat:::expect_condition_matching(...)
   12. │     └─testthat:::quasi_capture(...)
   13. │       ├─testthat (local) .capture(...)
   14. │       │ └─base::withCallingHandlers(...)
   15. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   16. ├─dplyr::copy_to(dm_for_filter(), mtcars, "")
   17. ├─dm:::copy_to.dm(dm_for_filter(), mtcars, "")
   18. │ └─dm:::repair_table_names(src_tbls_impl(dest), name, repair, quiet)
   19. │   └─dm:::repair_names_vec(c(old_names, new_names), repair, quiet)
   20. │     ├─base::withCallingHandlers(...)
   21. │     └─vctrs::vec_as_names(names, repair = repair, quiet = quiet)
   22. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   23.   └─rlang::names_inform_repair(orig_names, names)
   24.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   25.       ├─base::withRestarts(...)
   26.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   27.       │   └─base (local) doWithOneRestart(return(expr), restart)
   28.       └─base::signalCondition(cnd)
   29.         ├─base::conditionMessage(cond)
   30.         └─rlang:::conditionMessage.rlang_message(cond)
   31.           └─rlang::cnd_message(c)
   32.             └─rlang:::cnd_message_format(cnd, ...)
   33.               └─rlang (local) cli_format(glue_escape(lines))
   34.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   35.                   └─cli::cli_format(x, .envir = emptyenv())
   36.                     └─cli:::fmt(...)
   37.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   38.                         ├─base::do.call(app[[msg$type]], msg$args)
   39.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-21", class = NULL)
   40.                           └─cli:::clii_bullets(app, text, id, class)
   41.                             └─base::lapply(...)
   42.                               └─cli (local) FUN(X[[i]], ...)
   43.                                 └─app$text(text[[i]])
   44.                                   └─cli:::clii_text(app, text)
   45.                                     └─app$xtext(text)
   46.                                       └─cli:::clii__xtext(...)
   47.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   48.                                           └─base::lapply(pars, ansi_trimws)
   49.                                             └─cli (local) FUN(X[[i]], ...)
  ── Error (test-foreign-keys.R:262:3): bogus arguments are rejected ─────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─testthat::expect_snapshot(...) at test-foreign-keys.R:262:2
    2.   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    3.     ├─base::unlist(lapply(results, replay))
    4.     └─base::lapply(results, replay)
    5.       └─testthat (local) FUN(X[[i]], ...)
    6.         ├─testthat:::snapshot_replay(x, state, transform = transform, cnd_class = cnd_class)
    7.         └─testthat:::snapshot_replay.condition(...)
    8.           └─rlang::cnd_message(x, prefix = TRUE)
    9.             └─rlang:::cnd_message_format_prefixed(cnd, ..., parent = FALSE)
   10.               └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   11.                 └─rlang (local) cli_format(glue_escape(lines))
   12.                   └─rlang:::.rlang_cli_format(x, cli::format_error)
   13.                     └─cli::cli_format(x, .envir = emptyenv())
   14.                       └─cli:::fmt(...)
   15.                         └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   16.                           ├─base::do.call(app[[msg$type]], msg$args)
   17.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-448", class = NULL)
   18.                             └─cli:::clii_bullets(app, text, id, class)
   19.                               └─base::lapply(...)
   20.                                 └─cli (local) FUN(X[[i]], ...)
   21.                                   └─app$text(text[[i]])
   22.                                     └─cli:::clii_text(app, text)
   23.                                       └─app$xtext(text)
   24.                                         └─cli:::clii__xtext(...)
   25.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                             └─base::lapply(pars, ansi_trimws)
   27.                                               └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 6 | WARN 0 | SKIP 139 | PASS 770 ]
  Error: Test failures
  Execution halted