Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ellipsis)
  > 
  > test_check("ellipsis")
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-check.R:10:3): error if dots not used ─────────────────────────
  `f(1, 2, 3)` threw an error with unexpected class.
  Expected class: rlib_error_dots_unused
  Actual class:   simpleError/error/condition
  Message:        number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(f(1, 2, 3), class = "rlib_error_dots_unused") at test-check.R:10: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. └─ellipsis (local) f(1, 2, 3)
    7.   └─rlang (local) `<fn>`()
    8.     └─rlang:::check_dots(env, error, action, call)
    9.       └─rlang:::action_dots(...)
   10.         ├─base (local) try_dots(...)
   11.         └─rlang (local) action(...)
   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-2553110-3", 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]], ...)
  ── Failure (test-check.R:23:3): error if dots not used by another function ─────
  `f(x = 10, c = 3)` threw an error with unexpected class.
  Expected class: rlib_error_dots_unused
  Actual class:   simpleError/error/condition
  Message:        number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(f(x = 10, c = 3), class = "rlib_error_dots_unused") at test-check.R:23: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. └─ellipsis (local) f(x = 10, c = 3)
    7.   └─rlang (local) `<fn>`()
    8.     └─rlang:::check_dots(env, error, action, call)
    9.       └─rlang:::action_dots(...)
   10.         ├─base (local) try_dots(...)
   11.         └─rlang (local) action(...)
   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-2553110-12", 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]], ...)
  ── Failure (test-check.R:34:3): error if dots named ────────────────────────────
  `f(1, 2, 3, xy = 4)` threw an error with unexpected class.
  Expected class: rlib_error_dots_named
  Actual class:   simpleError/error/condition
  Message:        number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(f(1, 2, 3, xy = 4), class = "rlib_error_dots_named") at test-check.R:34: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. └─ellipsis (local) f(1, 2, 3, xy = 4)
    7.   └─rlang::check_dots_unnamed() at test-check.R:28:4
    8.     └─rlang:::action_dots(...)
    9.       ├─base (local) try_dots(...)
   10.       └─rlang (local) action(...)
   11.         └─rlang:::signal_abort(cnd, .file)
   12.           └─base::signalCondition(cnd)
   13.             ├─base::conditionMessage(cond)
   14.             └─rlang:::conditionMessage.rlang_error(cond)
   15.               └─rlang::cnd_message(c)
   16.                 └─rlang:::cnd_message_format(cnd, ...)
   17.                   └─rlang (local) cli_format(glue_escape(lines))
   18.                     └─rlang:::.rlang_cli_format(x, cli::format_error)
   19.                       └─cli::cli_format(x, .envir = emptyenv())
   20.                         └─cli:::fmt(...)
   21.                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   22.                             ├─base::do.call(app[[msg$type]], msg$args)
   23.                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-18", class = NULL)
   24.                               └─cli:::clii_bullets(app, text, id, class)
   25.                                 └─base::lapply(...)
   26.                                   └─cli (local) FUN(X[[i]], ...)
   27.                                     └─app$text(text[[i]])
   28.                                       └─cli:::clii_text(app, text)
   29.                                         └─app$xtext(text)
   30.                                           └─cli:::clii__xtext(...)
   31.                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   32.                                               └─base::lapply(pars, ansi_trimws)
   33.                                                 └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-check.R:43:3): error if if dots not empty ─────────────────────
  `f(xy = 4)` threw an error with unexpected class.
  Expected class: rlib_error_dots_nonempty
  Actual class:   simpleError/error/condition
  Message:        number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(f(xy = 4), class = "rlib_error_dots_nonempty") at test-check.R:43: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. └─ellipsis (local) f(xy = 4)
    7.   └─rlang::check_dots_empty() at test-check.R:39:4
    8.     └─rlang:::action_dots(...)
    9.       ├─base (local) try_dots(...)
   10.       └─rlang (local) action(...)
   11.         └─rlang:::signal_abort(cnd, .file)
   12.           └─base::signalCondition(cnd)
   13.             ├─base::conditionMessage(cond)
   14.             └─rlang:::conditionMessage.rlang_error(cond)
   15.               └─rlang::cnd_message(c)
   16.                 └─rlang:::cnd_message_format(cnd, ...)
   17.                   └─rlang (local) cli_format(glue_escape(lines))
   18.                     └─rlang:::.rlang_cli_format(x, cli::format_error)
   19.                       └─cli::cli_format(x, .envir = emptyenv())
   20.                         └─cli:::fmt(...)
   21.                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   22.                             ├─base::do.call(app[[msg$type]], msg$args)
   23.                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-24", class = NULL)
   24.                               └─cli:::clii_bullets(app, text, id, class)
   25.                                 └─base::lapply(...)
   26.                                   └─cli (local) FUN(X[[i]], ...)
   27.                                     └─app$text(text[[i]])
   28.                                       └─cli:::clii_text(app, text)
   29.                                         └─app$xtext(text)
   30.                                           └─cli:::clii__xtext(...)
   31.                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   32.                                               └─base::lapply(pars, ansi_trimws)
   33.                                                 └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-check.R:51:3): can control the action ─────────────────────────
  `f(abort, check_dots_used, xy = 4)` threw an error with unexpected class.
  Expected class: rlib_error_dots_unused
  Actual class:   simpleError/error/condition
  Message:        number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(f(abort, check_dots_used, xy = 4), class = "rlib_error_dots_unused") at test-check.R:51: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. └─ellipsis (local) f(abort, check_dots_used, xy = 4)
    7.   └─rlang (local) `<fn>`()
    8.     └─rlang:::check_dots(env, error, action, call)
    9.       └─rlang:::action_dots(...)
   10.         ├─base (local) try_dots(...)
   11.         └─rlang (local) action(...)
   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-2553110-30", 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-check.R:52:3): can control the action ───────────────────────────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(f(warn, check_dots_used, xy = 4), class = "rlib_error_dots_unused") at test-check.R:52: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. └─ellipsis (local) f(warn, check_dots_used, xy = 4)
    7.   └─rlang (local) `<fn>`()
    8.     └─rlang:::check_dots(env, error, action, call)
    9.       └─rlang:::action_dots(...)
   10.         ├─base (local) try_dots(...)
   11.         └─rlang (local) action(...)
   12.           └─base::warning(cnd)
   13.             ├─base::conditionMessage(cond)
   14.             └─rlang:::conditionMessage.rlang_warning(cond)
   15.               └─rlang::cnd_message(c)
   16.                 └─rlang:::cnd_message_format(cnd, ...)
   17.                   └─rlang (local) cli_format(glue_escape(lines))
   18.                     └─rlang:::.rlang_cli_format(x, cli::format_warning)
   19.                       └─cli::cli_format(x, .envir = emptyenv())
   20.                         └─cli:::fmt(...)
   21.                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   22.                             ├─base::do.call(app[[msg$type]], msg$args)
   23.                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-36", class = NULL)
   24.                               └─cli:::clii_bullets(app, text, id, class)
   25.                                 └─base::lapply(...)
   26.                                   └─cli (local) FUN(X[[i]], ...)
   27.                                     └─app$text(text[[i]])
   28.                                       └─cli:::clii_text(app, text)
   29.                                         └─app$xtext(text)
   30.                                           └─cli:::clii__xtext(...)
   31.                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   32.                                               └─base::lapply(pars, ansi_trimws)
   33.                                                 └─cli (local) FUN(X[[i]], ...)
  ── Failure (test-safe.R:6:3): warn if unused dots ──────────────────────────────
  `safe_median(1:10, y = 1)` threw an error with unexpected class.
  Expected class: rlib_error_dots_unused
  Actual class:   simpleError/error/condition
  Message:        number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_error(safe_median(1:10, y = 1), class = "rlib_error_dots_unused") at test-safe.R:6: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. └─ellipsis::safe_median(1:10, y = 1)
    7.   └─rlang (local) `<fn>`()
    8.     └─rlang:::check_dots(env, error, action, call)
    9.       └─rlang:::action_dots(...)
   10.         ├─base (local) try_dots(...)
   11.         └─rlang (local) action(...)
   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-2553110-42", 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]], ...)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted