Running 'testthat.R' [19s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(dtplyr)
  > 
  > test_check("dtplyr")
  [ FAIL 4 | WARN 0 | SKIP 25 | PASS 590 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (24)
  • transmuting grouping vars with nesting is not supported (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-step-join.R:275:3): converts other types if requested ───────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(left_join(dt1, x, by = "x"), "copy") at test-step-join.R:275:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─dplyr::left_join(dt1, x, by = "x")
    8. └─dtplyr:::left_join.dtplyr_step(dt1, x, by = "x")
    9.   └─dtplyr:::dtplyr_auto_copy(x, y, copy = copy)
   10.     └─dplyr::auto_copy(x, y, copy = copy)
   11.       └─rlang::abort(bullets)
   12.         └─rlang:::signal_abort(cnd, .file)
   13.           └─base::signalCondition(cnd)
   14.             ├─base::conditionMessage(cond)
   15.             └─rlang:::conditionMessage.rlang_error(cond)
   16.               └─rlang::cnd_message(c)
   17.                 └─rlang:::cnd_message_format(cnd, ...)
   18.                   └─rlang (local) cli_format(glue_escape(lines))
   19.                     └─rlang:::.rlang_cli_format(x, cli::format_error)
   20.                       └─cli::cli_format(x, .envir = emptyenv())
   21.                         └─cli:::fmt(...)
   22.                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   23.                             ├─base::do.call(app[[msg$type]], msg$args)
   24.                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-36", class = NULL)
   25.                               └─cli:::clii_bullets(app, text, id, class)
   26.                                 └─base::lapply(...)
   27.                                   └─cli (local) FUN(X[[i]], ...)
   28.                                     └─app$text(text[[i]])
   29.                                       └─cli:::clii_text(app, text)
   30.                                         └─app$xtext(text)
   31.                                           └─cli:::clii__xtext(...)
   32.                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   33.                                               └─base::lapply(pars, ansi_trimws)
   34.                                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-step-subset-expand.R:124:3): expand respects .name_repair ───────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-step-subset-expand.R:124:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_named(...)
    4. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    6. ├─dt %>% expand(x, x, .name_repair = "unique") %>% collect()
    7. ├─dplyr::collect(.)
    8. ├─tidyr::expand(., x, x, .name_repair = "unique")
    9. ├─dtplyr:::expand.dtplyr_step(., x, x, .name_repair = "unique")
   10. │ └─vctrs::vec_as_names(names(dots), repair = .name_repair)
   11. └─vctrs:::describe_repair(`<chr>`, `<chr>`)
   12.   └─rlang::names_inform_repair(orig_names, names)
   13.     └─rlang::inform(message = message, class = "rlib_message_name_repair")
   14.       ├─base::withRestarts(...)
   15.       │ └─base (local) withOneRestart(expr, restarts[[1L]])
   16.       │   └─base (local) doWithOneRestart(return(expr), restart)
   17.       └─base::signalCondition(cnd)
   18.         ├─base::conditionMessage(cond)
   19.         └─rlang:::conditionMessage.rlang_message(cond)
   20.           └─rlang::cnd_message(c)
   21.             └─rlang:::cnd_message_format(cnd, ...)
   22.               └─rlang (local) cli_format(glue_escape(lines))
   23.                 └─rlang:::.rlang_cli_format(x, cli::format_message)
   24.                   └─cli::cli_format(x, .envir = emptyenv())
   25.                     └─cli:::fmt(...)
   26.                       └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   27.                         ├─base::do.call(app[[msg$type]], msg$args)
   28.                         └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-66", class = NULL)
   29.                           └─cli:::clii_bullets(app, text, id, class)
   30.                             └─base::lapply(...)
   31.                               └─cli (local) FUN(X[[i]], ...)
   32.                                 └─app$text(text[[i]])
   33.                                   └─cli:::clii_text(app, text)
   34.                                     └─app$xtext(text)
   35.                                       └─cli:::clii__xtext(...)
   36.                                         └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   37.                                           └─base::lapply(pars, ansi_trimws)
   38.                                             └─cli (local) FUN(X[[i]], ...)
  ── Error (test-step-subset-slice.R:122:3): slice_*() checks for empty ... ──────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(slice_head(dt, 5), class = "rlib_error_dots_nonempty") at test-step-subset-slice.R:122:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─dplyr::slice_head(dt, 5)
    8. └─dtplyr:::slice_head.dtplyr_step(dt, 5)
    9.   └─ellipsis::check_dots_empty()
   10.     └─rlang:::action_dots(...)
   11.       ├─base (local) try_dots(...)
   12.       └─rlang (local) action(...)
   13.         └─rlang:::signal_abort(cnd, .file)
   14.           └─base::signalCondition(cnd)
   15.             ├─base::conditionMessage(cond)
   16.             └─rlang:::conditionMessage.rlang_error(cond)
   17.               └─rlang::cnd_message(c)
   18.                 └─rlang:::cnd_message_format(cnd, ...)
   19.                   └─rlang (local) cli_format(glue_escape(lines))
   20.                     └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                       └─cli::cli_format(x, .envir = emptyenv())
   22.                         └─cli:::fmt(...)
   23.                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                             ├─base::do.call(app[[msg$type]], msg$args)
   25.                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-72", class = NULL)
   26.                               └─cli:::clii_bullets(app, text, id, class)
   27.                                 └─base::lapply(...)
   28.                                   └─cli (local) FUN(X[[i]], ...)
   29.                                     └─app$text(text[[i]])
   30.                                       └─cli:::clii_text(app, text)
   31.                                         └─app$xtext(text)
   32.                                           └─cli:::clii__xtext(...)
   33.                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                               └─base::lapply(pars, ansi_trimws)
   35.                                                 └─cli (local) FUN(X[[i]], ...)
  ── Error (test-step-subset-slice.R:134:3): slice_*() checks for constant n= and prop= ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(slice_head(dt, n = n()), "constant") at test-step-subset-slice.R:134:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─dplyr::slice_head(dt, n = n())
    8. ├─dtplyr:::slice_head.dtplyr_step(dt, n = n())
    9. │ └─dtplyr:::get_slice_size(n, prop, "slice_head")
   10. │   └─dtplyr:::check_slice_size(n, prop, .slice_fn)
   11. │     └─dtplyr:::check_constant(n, "n", .slice_fn)
   12. │       ├─base::withCallingHandlers(...)
   13. │       └─base::force(x)
   14. ├─dplyr::n()
   15. │ └─dplyr:::peek_mask("n")
   16. │   └─dplyr:::context_peek("mask", fun)
   17. │     ├─context_peek_bare(name) %||% ...
   18. │     └─rlang::abort(glue("Must be used inside {location}."), call = call(fun))
   19. │       └─rlang:::signal_abort(cnd, .file)
   20. │         └─base::signalCondition(cnd)
   21. └─dtplyr (local) `<fn>`(`<rlng_rrr>`)
   22.   └─rlang::abort(...)
   23.     └─rlang:::signal_abort(cnd, .file)
   24.       └─base::signalCondition(cnd)
   25.         ├─base::conditionMessage(cond)
   26.         └─rlang:::conditionMessage.rlang_error(cond)
   27.           └─rlang::cnd_message(c)
   28.             └─rlang:::cnd_message_format_prefixed(cnd, parent = TRUE, warning = warning)
   29.               └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   30.                 └─rlang (local) cli_format(glue_escape(lines))
   31.                   └─rlang:::.rlang_cli_format(x, cli::format_error)
   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-24140-94", 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]], ...)
  
  [ FAIL 4 | WARN 0 | SKIP 25 | PASS 590 ]
  Error: Test failures
  Execution halted