Running ‘testthat.R’ [27s/40s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(renv)
  
  Attaching package: 'renv'
  
  The following object is masked from 'package:stats':
  
      update
  
  The following objects are masked from 'package:utils':
  
      history, upgrade
  
  The following objects are masked from 'package:base':
  
      load, remove
  
  > 
  > renv:::renv_tests_init()
  > test_check("renv")
  The renv cache root has not yet been created:
  
  	~/.local/share/renv
  
  A temporary cache directory will be used instead.
  Please call `renv::consent()` to allow renv to generate a cache directory.
  Please restart the R session after providing consent.
  
  ── 1. Failure: issues within the cache are reported (@test-cache.R#34)  ────────
  nrow(problems) == 2 isn't true.
  
  ── 2. Failure: we can initialize a project using 'breakfast' (@test-init.R#15)  
  `actual`[c(1, 3)] absent from `expected`
  
  ── 3. Failure: we can initialize a project using 'breakfast' (@test-init.R#15)  
  `expected`[c(1, 3, 4)] absent from `actual`
  
  ── 4. Error: install forces update of dependencies as needed (@test-install.R#39
  package 'plyr' is not available
  1: renv::install("breakfast") at testthat/test-install.R:39
  2: renv_retrieve(packages)
  3: handler(package, renv_retrieve_impl(package))
  4: renv_retrieve_impl(package)
  5: renv_retrieve_successful(record, path)
  6: renv_retrieve(package)
  7: handler(package, renv_retrieve_impl(package))
  8: renv_retrieve_impl(package)
  9: records[[package]] %||% renv_retrieve_missing_record(package)
  10: renv_retrieve_missing_record(package)
  11: renv_available_packages_latest(package)
  12: stopf("package '%s' is not available", package)
  13: stop(sprintf(fmt, ...), call. = call.)
  
  ── 5. Error: renv warns when snapshotting missing dependencies (@test-preflight.
  there is no package called 'oatmeal'
  1: remove.packages("oatmeal") at testthat/test-preflight.R:29
  2: find.package(pkgs, lib)
  
  ── 6. Error: we can use R CMD build to build a package (@test-r.R#28)  ─────────
  build of package 'sample.package' failed
  1: r_exec(package, args, "build") at testthat/test-r.R:28
  2: r_exec_error(package, output, label)
  
  ── 7. Failure: restore can recover when required packages are missing (@test-res
  renv_package_installed("oatmeal") isn't true.
  
  ── 8. Error: a custom snapshot filter can be used (@test-snapshot.R#104)  ──────
  `object` and `expected` must both be vectors
  1: expect_setequal(names(renv_records(lockfile)), c("bread", "toast")) at testthat/test-snapshot.R:104
  2: abort("`object` and `expected` must both be vectors")
  3: signal_abort(cnd)
  
  ── 9. Error: snapshots that take too long produce a warning (@test-snapshot.R#11
  package 'plyr' is not available
  1: install("breakfast") at testthat/test-snapshot.R:117
  2: renv_retrieve(packages)
  3: handler(package, renv_retrieve_impl(package))
  4: renv_retrieve_impl(package)
  5: renv_retrieve_successful(record, path)
  6: renv_retrieve(package)
  7: handler(package, renv_retrieve_impl(package))
  8: renv_retrieve_impl(package)
  9: records[[package]] %||% renv_retrieve_missing_record(package)
  10: renv_retrieve_missing_record(package)
  11: renv_available_packages_latest(package)
  12: stopf("package '%s' is not available", package)
  13: stop(sprintf(fmt, ...), call. = call.)
  
  ── 10. Failure: status() works when there is no library (@test-status.R#16)  ───
  renv_records(info$library) has length 3, not length 4.
  
  ── 11. Failure: status() works when there is no library (@test-status.R#17)  ───
  renv_records(info$lockfile) has length 3, not length 4.
  
  ── 12. Failure: status() works when there is no library (@test-status.R#27)  ───
  renv_records(info$lockfile) has length 3, not length 4.
  
  ── 13. Error: status reports packages to be installed / changed (@test-status.R#
  package 'plyr' is not available
  1: install("breakfast") at testthat/test-status.R:43
  2: renv_retrieve(packages)
  3: handler(package, renv_retrieve_impl(package))
  4: renv_retrieve_impl(package)
  5: renv_retrieve_successful(record, path)
  6: renv_retrieve(package)
  7: handler(package, renv_retrieve_impl(package))
  8: renv_retrieve_impl(package)
  9: records[[package]] %||% renv_retrieve_missing_record(package)
  10: renv_retrieve_missing_record(package)
  11: renv_available_packages_latest(package)
  12: stopf("package '%s' is not available", package)
  13: stop(sprintf(fmt, ...), call. = call.)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 232 | SKIPPED: 37 | WARNINGS: 0 | FAILED: 13 ]
  1. Failure: issues within the cache are reported (@test-cache.R#34) 
  2. Failure: we can initialize a project using 'breakfast' (@test-init.R#15) 
  3. Failure: we can initialize a project using 'breakfast' (@test-init.R#15) 
  4. Error: install forces update of dependencies as needed (@test-install.R#39) 
  5. Error: renv warns when snapshotting missing dependencies (@test-preflight.R#29) 
  6. Error: we can use R CMD build to build a package (@test-r.R#28) 
  7. Failure: restore can recover when required packages are missing (@test-restore.R#42) 
  8. Error: a custom snapshot filter can be used (@test-snapshot.R#104) 
  9. Error: snapshots that take too long produce a warning (@test-snapshot.R#117) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted