Running ‘testthat.R’ [18s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (nzchar(system.file(package = "testthat"))) {
  +     library(testthat)
  +     library(jmvReadWrite)
  + 
  +     test_check("jmvReadWrite")
  + }
  
  Attaching package: 'jmvReadWrite'
  
  The following object is masked from 'package:datasets':
  
      ToothGrowth
  
  Saving _problems/test-read_omv-16.R
  Saving _problems/test-read_omv-219.R
  The file "01 empty/analysis" could not be extracted from "/tmp/RtmpoVfSoB/file21e0b342135123_S.omv".
  Please send the file to sebastian.jentschke@uib.no!
  Error message: Error in zip::unzip(fleOMV, crrFle, exdir = tempdir(), junkpaths = TRUE): zip error: Cannot extract file `01 empty/analysis` in file zip.c:253
  
  
  Saving _problems/test-sort_omv-54.R
  Saving _problems/test-transform_vars_omv-12.R
  [ FAIL 4 | WARN 3 | SKIP 0 | PASS 1513 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-read_omv.R:16:5'): read_omv works ──────────────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `expect_vector(attr(df4Chk[[4]], "missingValues"), list(), 0)`: The package "vctrs" is required.
  Backtrace:
      ▆
   1. └─testthat::expect_vector(...) at test-read_omv.R:16:5
   2.   └─rlang::check_installed("vctrs")
  ── Error ('test-read_omv.R:218:5'): read_all works ─────────────────────────────
  Error in `getSPSS(fleInp, usePkg, varArg)`: In order to read the SPSS-file "file21e0b39e87b27.sav" either of the R-packages "haven" or "foreign" needs to be installed.
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-read_omv.R:218:5
    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. ├─testthat::expect_null(read_all(fleInp, usePkg = "haven"))
    8. │ └─testthat::quasi_label(enquo(object), label)
    9. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   10. └─jmvReadWrite:::read_all(fleInp, usePkg = "haven")
   11.   └─jmvReadWrite:::getSPSS(fleInp, usePkg, varArg)
  ── Error ('test-sort_omv.R:54:5'): sort_omv works ──────────────────────────────
  Error in `RProtoBuf::read(jamovi.coms.AnalysisResponse, anlHdl <- getHdl(fleInp, anlNme, "rb"))`: can only read from connections
  Backtrace:
      ▆
   1. └─jmvReadWrite::read_omv(nmeOut, sveAtt = FALSE, getSyn = TRUE) at test-sort_omv.R:54:5
   2.   ├─RProtoBuf::read(...)
   3.   └─RProtoBuf::read(...)
  ── Error ('test-transform_vars_omv.R:12:5'): transform_vars_omv works ──────────
  Error in `file(file.path(tempdir(), crrFle[1]), open = ifelse(length(crrFle) > 1, crrFle[2], "w"))`: cannot open the connection
  Backtrace:
      ▆
   1. ├─testthat::expect_null(...) at test-transform_vars_omv.R:12:5
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─jmvReadWrite::transform_vars_omv(...)
   5.   └─jmvReadWrite:::rtnDta(...)
   6.     └─jmvReadWrite::write_omv(...)
   7.       └─jmvReadWrite:::add2ZIP(fleOut, crrFle = c("meta", "wb"), txtOut = mnfTxt())
   8.         └─base::file(...)
  
  [ FAIL 4 | WARN 3 | SKIP 0 | PASS 1513 ]
  Error:
  ! Test failures.
  Execution halted