Running ‘test-async.R’ [1m/180m]
  Running ‘testthat.R’
Running the tests in ‘tests/test-async.R’ failed.
Complete output:
  > 
  > if (file.exists("async")) {
  +   library(testthat)
  +   library(pkgcache)
  +   test <- function() {
  +     package <- "pkgcache"
  +     env_test <- asNamespace("testthat")$env_test
  +     env_test$in_test <- TRUE
  +     env_test$package <- package
  +     on.exit({
  +       env_test$in_test <- FALSE
  +       env_test$package <- NULL
  +     })
  +     test_path <- "async"
  +     asNamespace("testthat")$test_package_dir(
  +       package = package, test_path = test_path,
  +       filter = NULL, reporter = "check")
  +   }
  +   test()
  + }
  
  Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgcache)
  > 
  > test_check("pkgcache")
  ── 1. Error: get_cache_files (@test-metadata-cache.R#5)  ───────────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: get_current_data (@test-metadata-cache.R#37)  ─────────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: load_replica_rds (@test-metadata-cache.R#63)  ─────────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 4. Error: load_primary_rds (@test-metadata-cache.R#93)  ─────────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 5. Error: load_primary_pkgs (@test-metadata-cache.R#163)  ───────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 6. Error: update_replica_rds (@test-metadata-cache.R#226)  ──────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 7. Error: update_primary (@test-metadata-cache.R#248)  ──────────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 8. Error: cleanup (@test-metadata-cache.R#581)  ─────────────────────────────
  there is no package called 'fs'
  Backtrace:
   1. base::dir.create(pri <- fs::path_norm(tempfile()))
   2. fs::path_norm
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 259 | SKIPPED: 28 | WARNINGS: 0 | FAILED: 8 ]
  1. Error: get_cache_files (@test-metadata-cache.R#5) 
  2. Error: get_current_data (@test-metadata-cache.R#37) 
  3. Error: load_replica_rds (@test-metadata-cache.R#63) 
  4. Error: load_primary_rds (@test-metadata-cache.R#93) 
  5. Error: load_primary_pkgs (@test-metadata-cache.R#163) 
  6. Error: update_replica_rds (@test-metadata-cache.R#226) 
  7. Error: update_primary (@test-metadata-cache.R#248) 
  8. Error: cleanup (@test-metadata-cache.R#581) 
  
  Error: testthat unit tests failed
  Execution halted