Running ‘testthat.R’ [8s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sship)
  > 
  > test_check("sship")
  tar: z: unknown function modifier
  Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
  tar: z: unknown function modifier
  Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
  tar: z: unknown function modifier
  Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
  tar: z: unknown function modifier
  Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
  tar: z: unknown function modifier
  Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
  tar: z: unknown function modifier
  Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-dec.R:26:3): decryption function returns invisible ──────────────
  Error: cannot open the connection
  Backtrace:
      █
   1. ├─testthat::expect_invisible(dec(tarfile, keyfile)) test-dec.R:26:2
   2. │ └─base::withVisible(call)
   3. └─sship::dec(tarfile, keyfile)
   4.   └─utils::untar(tarfile, tar = "internal")
   5.     └─utils:::untar2(tarfile, files, list, exdir, restore_times)
   6.       └─base::gzfile(path.expand(tarfile), "rb")
  ── Failure (test-dec.R:30:3): archive contains expected files ──────────────────
  file.exists("content.csv") is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-dec.R:36:3): data is identical before (encryption) and after decryption ──
  Error: cannot open the connection
  Backtrace:
      █
   1. └─utils::read.csv("content.csv") test-dec.R:36:2
   2.   └─utils::read.table(...)
   3.     └─base::file(file, "rt")
  ── Failure (test-enc.R:65:3): a file name can be obtained from the function ────
  file.exists(f) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 21 ]
  Error: Test failures
  Execution halted