Running ‘run-all.R’ [13s/39s]
Running the tests in ‘tests/run-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("ProjectTemplate")
  Loading required package: ProjectTemplate
  Loading required package: digest
  Loading required package: tibble
  
  ══ Testing 1.R ═════════════════════════════════════════════════════════════════
  
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] Done!
  
  ══ Testing 1.R ═════════════════════════════════════════════════════════════════
  
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ]
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 1 ] Done!
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] TRUE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [1] FALSE
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 897 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-qs.R:282'): auto loaded data is not cached when cached_loaded_data is FALSE ──
  `suppressWarnings(qs::qload("cache/test.qs", env = environment()))` threw an error with unexpected message.
  Expected match: "Failed to open cache/test.qs. Check file path."
  Actual message: "Failed to open file for reading. \n- Does the file exist?\n - Do you have file permissions?\n- Is the file name long? (usually 255 chars)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-qs.R:282:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─base::suppressWarnings(qs::qload("cache/test.qs", env = environment()))
   7. │ └─base::withCallingHandlers(...)
   8. └─qs::qload("cache/test.qs", env = environment())
   9.   └─qs::qread(file, ...)
  ── Failure ('test-qs.R:320'): auto loaded data from an R script is cached correctly ──
  `suppressWarnings(qs::qload("cache/test_data11.qs", env = environment()))` threw an error with unexpected message.
  Expected match: "Failed to open cache/test_data11.qs. Check file path."
  Actual message: "Failed to open file for reading. \n- Does the file exist?\n - Do you have file permissions?\n- Is the file name long? (usually 255 chars)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-qs.R:320:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─base::suppressWarnings(qs::qload("cache/test_data11.qs", env = environment()))
   7. │ └─base::withCallingHandlers(...)
   8. └─qs::qload("cache/test_data11.qs", env = environment())
   9.   └─qs::qread(file, ...)
  ── Failure ('test-qs.R:322'): auto loaded data from an R script is cached correctly ──
  `suppressWarnings(qs::qload("cache/test_data21.qs", env = environment()))` threw an error with unexpected message.
  Expected match: "Failed to open cache/test_data21.qs. Check file path."
  Actual message: "Failed to open file for reading. \n- Does the file exist?\n - Do you have file permissions?\n- Is the file name long? (usually 255 chars)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-qs.R:322:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─base::suppressWarnings(qs::qload("cache/test_data21.qs", env = environment()))
   7. │ └─base::withCallingHandlers(...)
   8. └─qs::qload("cache/test_data21.qs", env = environment())
   9.   └─qs::qread(file, ...)
  ── Failure ('test-qs.R:355'): projects without the cached_loaded_data config have their migrated config set to FALSE  ──
  `suppressWarnings(qs::qload("cache/test.qs", env = environment()))` threw an error with unexpected message.
  Expected match: "Failed to open cache/test.qs. Check file path."
  Actual message: "Failed to open file for reading. \n- Does the file exist?\n - Do you have file permissions?\n- Is the file name long? (usually 255 chars)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-qs.R:355:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─base::suppressWarnings(qs::qload("cache/test.qs", env = environment()))
   7. │ └─base::withCallingHandlers(...)
   8. └─qs::qload("cache/test.qs", env = environment())
   9.   └─qs::qread(file, ...)
  ── Failure ('test-qs.R:369'): projects without the cached_loaded_data config have their migrated config set to FALSE  ──
  `suppressWarnings(qs::qload("cache/test.qs", env = environment()))` threw an error with unexpected message.
  Expected match: "Failed to open cache/test.qs. Check file path."
  Actual message: "Failed to open file for reading. \n- Does the file exist?\n - Do you have file permissions?\n- Is the file name long? (usually 255 chars)"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-qs.R:369:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─base::suppressWarnings(qs::qload("cache/test.qs", env = environment()))
   7. │ └─base::withCallingHandlers(...)
   8. └─qs::qload("cache/test.qs", env = environment())
   9.   └─qs::qread(file, ...)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 897 ]
  Error: Test failures
  Execution halted