Running ‘testthat.R’ [10s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(storr)
  > 
  > test_check("storr")
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 59 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 59 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 101 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 101 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 118 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 118 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 210 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 210 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 270 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 270 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 312 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 312 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 329 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 329 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 421 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 421 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 504 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 504 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 546 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 546 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 563 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 563 ]
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 655 ]
  
  [ FAIL 0 | WARN 1 | SKIP 0 | PASS 655 ]
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 714 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-auto.R:22:3'
  
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 714 ]
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 756 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-auto.R:22:3'
  
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 756 ]
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 773 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-auto.R:22:3'
  
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 773 ]
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 865 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-auto.R:22:3'
  
  [ FAIL 0 | WARN 1 | SKIP 1 | PASS 865 ]
  Saving _problems/test-driver-rds-157.R
  Saving _problems/test-driver-rds-195.R
  Saving _problems/test-driver-rds-229.R
  Saving _problems/test-driver-rds-253.R
  Saving _problems/test-driver-rds-323.R
  Saving _problems/test-driver-rds-328.R
  Saving _problems/test-driver-remote-9.R
  [ FAIL 7 | WARN 22 | SKIP 7 | PASS 1141 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-auto.R:22:3', 'test-driver-dbi.R:156:3',
    'test-driver-rds.R:117:3', 'test-driver-rds.R:206:3',
    'test-driver-rds.R:357:3', 'test-hash.R:15:3', 'test-spec.R:4:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-driver-rds.R:157:3'): compression support ──────────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─st2$set("data", data) at test-driver-rds.R:157:3
   2.   └─self$driver$set_hash(key, namespace, hash)
   3.     └─storr:::write_lines(hash, self$name_key(key, namespace), scratch_dir = self$path_scratch)
   4.       ├─base::withCallingHandlers(...)
   5.       └─storr:::try_write_lines(text, filename, ..., scratch_dir = scratch_dir)
   6.         └─base::writeLines(text, tmp, ...)
   7.           └─base::file(con, "w")
  ── Error ('test-driver-rds.R:195:3'): mangledness padding backward compatibility ──
  Error in `(if (compress) gzfile else file)(tmp, "wb")`: cannot open the connection
  Backtrace:
      ▆
   1. └─st$set("a", "x") at test-driver-rds.R:195:3
   2.   └─self$set_value(value, use_cache)
   3.     └─self$driver$set_object(hash, value_send)
   4.       └─storr:::write_serialized_rds(...)
   5.         ├─base::withCallingHandlers(...)
   6.         └─storr:::try_write_serialized_rds(...)
   7.           └─(if (compress) gzfile else file)(tmp, "wb")
  ── Error ('test-driver-rds.R:229:3'): vectorised exists ────────────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─storr::storr_rds(tempfile(), mangle_key = TRUE) at test-driver-rds.R:229:3
    2.   ├─storr::storr(...)
    3.   │ └─R6_storr$new(driver, default_namespace)
    4.   │   └─storr (local) initialize(...)
    5.   └─storr::driver_rds(...)
    6.     └─R6_driver_rds$new(...)
    7.       └─storr (local) initialize(...)
    8.         └─storr:::write_if_missing(...)
    9.           └─base::writeLines(value, path)
   10.             └─base::file(con, "w")
  ── Error ('test-driver-rds.R:253:3'): check empty storr ────────────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─storr::storr_rds(tempfile()) at test-driver-rds.R:253:3
    2.   ├─storr::storr(...)
    3.   │ └─R6_storr$new(driver, default_namespace)
    4.   │   └─storr (local) initialize(...)
    5.   └─storr::driver_rds(...)
    6.     └─R6_driver_rds$new(...)
    7.       └─storr (local) initialize(...)
    8.         └─storr:::write_if_missing(...)
    9.           └─base::writeLines(value, path)
   10.             └─base::file(con, "w")
  ── Error ('test-driver-rds.R:323:3'): automatic is ok if storr is healthy ──────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. ├─testthat::expect_false(storr_rds(tempfile())$repair(force = FALSE)) at test-driver-rds.R:323:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─storr::storr_rds(tempfile())
    5.   ├─storr::storr(...)
    6.   │ └─R6_storr$new(driver, default_namespace)
    7.   │   └─storr (local) initialize(...)
    8.   └─storr::driver_rds(...)
    9.     └─R6_driver_rds$new(...)
   10.       └─storr (local) initialize(...)
   11.         └─storr:::driver_rds_config(...)
   12.           └─base::writeLines(as.character(value), path_opt)
   13.             └─base::file(con, "w")
  ── Error ('test-driver-rds.R:328:3'): corrupted mangled keys ───────────────────
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
       ▆
    1. └─storr::storr_rds(tempfile(), mangle_key = TRUE, mangle_key_pad = TRUE) at test-driver-rds.R:328:3
    2.   ├─storr::storr(...)
    3.   │ └─R6_storr$new(driver, default_namespace)
    4.   │   └─storr (local) initialize(...)
    5.   └─storr::driver_rds(...)
    6.     └─R6_driver_rds$new(...)
    7.       └─storr (local) initialize(...)
    8.         └─storr:::write_if_missing(...)
    9.           └─base::writeLines(value, path)
   10.             └─base::file(con, "w")
  ── Error ('test-driver-remote.R:9:3'): storr spec ──────────────────────────────
  Error in `FUN(X[[i]], ...)`: `path` does not exist.
  Backtrace:
      ▆
   1. └─storr::test_driver(create) at test-driver-remote.R:9:3
   2.   └─base::lapply(files_test, testthat::test_file, env = env, reporter = reporter)
   3.     └─testthat (local) FUN(X[[i]], ...)
   4.       └─cli::cli_abort("{.arg path} does not exist.")
   5.         └─rlang::abort(...)
  
  [ FAIL 7 | WARN 22 | SKIP 7 | PASS 1141 ]
  Error:
  ! Test failures.
  Execution halted