Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(jetpack)
  
  Attaching package: 'jetpack'
  
  The following object is masked from 'package:stats':
  
      update
  
  The following objects are masked from 'package:base':
  
      load, remove, search
  
  > 
  > test_check("jetpack")
  Run 'jetpack add <package>' to add packages!
  -- 1. Error: it works (@test-jetpack.R#14)  ------------------------------------
  Unable to retrieve package records for the following packages:
  - "randomForest"
  1: tryCatch({
         with_dir(tempdir(), {
             jetpack::init()
             expect(file.exists("DESCRIPTION"))
             expect(file.exists("packrat.lock"))
             expect(file.exists(".Rprofile"))
             jetpack::add("randomForest")
             expect(contains("DESCRIPTION", "randomForest"))
             expect(contains("packrat.lock", "randomForest"))
             check <- jetpack::check()
             expect(check)
             jetpack::install()
             jetpack::update("randomForest")
             jetpack::remove("randomForest")
             expect(!contains("DESCRIPTION", "randomForest"))
             expect(!contains("packrat.lock", "randomForest"))
         })
     }, finally = {
         packrat::off()
     }) at testthat/test-jetpack.R:14
  2: tryCatchList(expr, classes, parentenv, handlers)
  3: with_dir(tempdir(), {
         jetpack::init()
         expect(file.exists("DESCRIPTION"))
         expect(file.exists("packrat.lock"))
         expect(file.exists(".Rprofile"))
         jetpack::add("randomForest")
         expect(contains("DESCRIPTION", "randomForest"))
         expect(contains("packrat.lock", "randomForest"))
         check <- jetpack::check()
         expect(check)
         jetpack::install()
         jetpack::update("randomForest")
         jetpack::remove("randomForest")
         expect(!contains("DESCRIPTION", "randomForest"))
         expect(!contains("packrat.lock", "randomForest"))
     }) at testthat/test-jetpack.R:15
  4: force(code)
  5: jetpack::add("randomForest") at testthat/test-jetpack.R:21
  6: sandbox({
         prepCommand()
         desc <- updateDesc(packages, remotes)
         installHelper(desc = desc, show_status = TRUE)
         success("Pack complete!")
     })
  7: eval(code)
  8: installHelper(desc = desc, show_status = TRUE)
  9: suppressMessages(packrat::snapshot(project = dir, prompt = FALSE, ignore.stale = TRUE))
  10: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  11: packrat::snapshot(project = dir, prompt = FALSE, ignore.stale = TRUE)
  12: snapshotImpl(project, available, lib.loc, dry.run, ignore.stale = ignore.stale, prompt = prompt && 
         !dry.run, snapshot.sources = snapshot.sources, infer.dependencies = infer.dependencies)
  13: getPackageRecords(inferredPkgsNotInLib, project = project, available = available, 
         check.lockfile = TRUE, fallback.ok = fallback.ok)
  14: stop("Unable to retrieve package records for the following packages:\n- ", paste(shQuote(pkgNames), 
         collapse = ", "), call. = FALSE)
  
  == testthat results  ===========================================================
  OK: 3 SKIPPED: 0 FAILED: 1
  1. Error: it works (@test-jetpack.R#14) 
  
  Error: testthat unit tests failed
  Execution halted