Running ‘testthat.R’ [19s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("DBI")
  > 
  > test_check("duckdb")
  Loading required package: duckdb
  [ FAIL 2 | WARN 1 | SKIP 18 | PASS 317 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (16)
  • empty test (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_backend-dbplyr__duckdb_connection.R:82:3): pasting translated correctly ──
  `translate(paste0(x, collapse = ""), window = FALSE)` threw an error with unexpected message.
  Expected match: "`collapse` not supported"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_backend-dbplyr__duckdb_connection.R:82:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─duckdb (local) translate(paste0(x, collapse = ""), window = FALSE)
    7. │ └─dbplyr::translate_sql(..., con = duckdb::translate_duckdb()) at test_backend-dbplyr__duckdb_connection.R:72:15
    8. │   └─dbplyr::translate_sql_(...)
    9. │     └─base::lapply(...)
   10. │       └─dbplyr (local) FUN(X[[i]], ...)
   11. │         ├─dbplyr::escape(eval_tidy(x, mask), con = con)
   12. │         └─rlang::eval_tidy(x, mask)
   13. └─dbplyr (local) paste0(x, collapse = "")
   14.   └─dbplyr:::check_collapse(collapse)
   15.     └─cli::cli_abort(...)
   16.       └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   17.         └─rlang:::signal_abort(cnd, .file)
   18.           └─base::signalCondition(cnd)
   19.             ├─base::conditionMessage(cond)
   20.             └─rlang:::conditionMessage.rlang_error(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_error)
   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-14", 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]], ...)
  ── Failure (test_backend-dbplyr__duckdb_connection.R:135:3): custom stringr functions translated correctly ──
  `translate(str_c(x, collapse = ""))` threw an error with unexpected message.
  Expected match: "`collapse` not supported"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(translate(str_c(x, collapse = "")), "`collapse` not supported") at test_backend-dbplyr__duckdb_connection.R:135:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─duckdb (local) translate(str_c(x, collapse = ""))
    7. │ └─dbplyr::translate_sql(..., con = duckdb::translate_duckdb()) at test_backend-dbplyr__duckdb_connection.R:131:15
    8. │   └─dbplyr::translate_sql_(...)
    9. │     └─base::lapply(...)
   10. │       └─dbplyr (local) FUN(X[[i]], ...)
   11. │         ├─dbplyr::escape(eval_tidy(x, mask), con = con)
   12. │         └─rlang::eval_tidy(x, mask)
   13. └─dbplyr (local) str_c(x, collapse = "")
   14.   └─dbplyr:::check_collapse(collapse)
   15.     └─cli::cli_abort(...)
   16.       └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   17.         └─rlang:::signal_abort(cnd, .file)
   18.           └─base::signalCondition(cnd)
   19.             ├─base::conditionMessage(cond)
   20.             └─rlang:::conditionMessage.rlang_error(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_error)
   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-28", 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 2 | WARN 1 | SKIP 18 | PASS 317 ]
  Error: Test failures
  Execution halted