Running ‘testthat.R’ [7s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(qualtRics)
  > 
  > test_check("qualtRics")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 169 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (7)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-read-survey.R:12:3): read_survey() reads data in qualtrics standard and legacy format and converts columns ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-read-survey.R:12:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─qualtRics::read_survey("files/sample_legacy.csv", legacy = TRUE)
    4. │ ├─base::suppressMessages(...)
    5. │ │ └─base::withCallingHandlers(...)
    6. │ └─readr::read_csv(...)
    7. │   └─vroom::vroom(...)
    8. │     └─vroom:::vroom_(...)
    9. ├─vroom (local) `<fn>`(`<col_spec>`, 16L, `<chr>`, NULL, "unique")
   10. │ └─vctrs::vec_as_names(col_names, 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-28", 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]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 169 ]
  Error: Test failures
  In addition: Warning message:
  In readRenviron("~/.Renviron") :
    file '/home/hornik/.Renviron' cannot be opened for reading
  Execution halted