Running examples in 'sjmisc-Ex.R' failed
The error most likely occurred in:

> ### Name: add_columns
> ### Title: Add or replace data frame columns
> ### Aliases: add_columns replace_columns add_id
> 
> ### ** Examples
> 
> data(efc)
> d1 <- efc[, 1:3]
> d2 <- efc[, 4:6]
> 
> library(dplyr)

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

> head(bind_cols(d1, d2))
  c12hour e15relat e16sex e17age e42dep c82cop1
1      16        2      2     83      3       3
2     148        2      2     88      3       3
3      70        1      2     82      3       2
4     168        1      2     67      4       4
5     168        2      2     84      4       3
6      16        2      2     85      4       2
> add_columns(d1, d2) %>% head()
  e17age e42dep c82cop1 c12hour e15relat e16sex
1     83      3       3      16        2      2
2     88      3       3     148        2      2
3     82      3       2      70        1      2
4     67      4       4     168        1      2
5     84      4       3     168        2      2
6     85      4       2      16        2      2
> 
> d1 <- efc[, 1:3]
> d2 <- efc[, 2:6]
> 
> add_columns(d1, d2, replace = TRUE) %>% head()
  c12hour e15relat e17age e42dep c82cop1 e16sex
1      16        2     83      3       3      2
2     148        2     88      3       3      2
3      70        1     82      3       2      2
4     168        1     67      4       4      2
5     168        2     84      4       3      2
6      16        2     85      4       2      2
> add_columns(d1, d2, replace = FALSE) %>% head()
Error in `dplyr::bind_cols()`:
! number of characters is not computable in "bytes" encoding, element 1
Backtrace:
     ▆
  1. ├─add_columns(d1, d2, replace = FALSE) %>% head()
  2. ├─utils::head(.)
  3. ├─sjmisc::add_columns(d1, d2, replace = FALSE)
  4. │ └─dplyr::bind_cols(tmp, data)
  5. │   ├─dplyr:::fix_call(vec_cbind(!!!dots, .name_repair = .name_repair))
  6. │   │ └─base::withCallingHandlers(...)
  7. │   └─vctrs::vec_cbind(!!!dots, .name_repair = .name_repair)
  8. ├─vctrs:::describe_repair(`<chr>`, `<chr>`)
  9. │ └─rlang::names_inform_repair(orig_names, names)
 10. │   └─rlang::inform(message = message, class = "rlib_message_name_repair")
 11. │     ├─base::withRestarts(...)
 12. │     │ └─base (local) withOneRestart(expr, restarts[[1L]])
 13. │     │   └─base (local) doWithOneRestart(return(expr), restart)
 14. │     └─base::signalCondition(cnd)
 15. │       ├─base::conditionMessage(cond)
 16. │       └─rlang:::conditionMessage.rlang_message(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_message)
 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-54", 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]], ...)
 36. └─base::.handleSimpleError(...)
 37.   └─dplyr (local) h(simpleError(msg, call))
 38.     └─rlang::cnd_signal(cnd)
Execution halted