Running ‘testthat.R’ [5s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(headliner)
  > 
  > test_check("headliner")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 103 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-add-date-columns.R:36:3): overlapping columns dropped or renamed ──
  Error in `bind_cols(df, new_fields)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(add_date_columns(df, date), "duplicate names") at test-add-date-columns.R:36: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. ├─headliner::add_date_columns(df, date)
    7. │ └─dplyr::bind_cols(df, new_fields)
    8. │   ├─dplyr:::fix_call(vec_cbind(!!!dots, .name_repair = .name_repair))
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─vctrs::vec_cbind(!!!dots, .name_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-2553110-30", 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]], ...)
   39. └─base::.handleSimpleError(...)
   40.   └─dplyr (local) h(simpleError(msg, call))
   41.     └─rlang::cnd_signal(cnd)
  ── Error (test-add-headline-column.R:8:3): add headline column works ───────────
  Error in `bind_cols(df, headline_results, .name_repair = "unique")`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-add-headline-column.R:8: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. ├─headliner::add_headline_column(mtcars, gear, carb, .name = "mpg")
    7. │ └─dplyr::bind_cols(df, headline_results, .name_repair = "unique")
    8. │   ├─dplyr:::fix_call(vec_cbind(!!!dots, .name_repair = .name_repair))
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─vctrs::vec_cbind(!!!dots, .name_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-2553110-60", 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]], ...)
   39. └─base::.handleSimpleError(...)
   40.   └─dplyr (local) h(simpleError(msg, call))
   41.     └─rlang::cnd_signal(cnd)
  ── Error (test-add-headline-column.R:70:3): warning if columns renamed ─────────
  Error in `bind_cols(df, headline_results, .name_repair = "unique")`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-add-headline-column.R:70:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─headliner::add_headline_column(...)
    7. │ └─dplyr::bind_cols(df, headline_results, .name_repair = "unique")
    8. │   ├─dplyr:::fix_call(vec_cbind(!!!dots, .name_repair = .name_repair))
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─vctrs::vec_cbind(!!!dots, .name_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-2553110-114", 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]], ...)
   39. └─base::.handleSimpleError(...)
   40.   └─dplyr (local) h(simpleError(msg, call))
   41.     └─rlang::cnd_signal(cnd)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 103 ]
  Error: Test failures
  Execution halted