Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [15s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(devtools)
  Loading required package: usethis
  
  Attaching package: 'devtools'
  
  The following object is masked from 'package:testthat':
  
      test_file
  
  > 
  > test_check("devtools")
  == Documenting =================================================================
  * installing *source* package ‘pkgbuild’ ...
  ** this is package ‘pkgbuild’ version ‘1.4.6’
  ** package ‘pkgbuild’ successfully unpacked and MD5 sums checked
  ** using staged installation
  ** R
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (pkgbuild)
  [ FAIL 13 | WARN 22 | SKIP 19 | PASS 28 ]
  
  ══ Skipped tests (19) ══════════════════════════════════════════════════════════
  • On CRAN (18): 'test-active.R:2:3', 'test-active.R:6:3',
    'test-build-readme.R:2:3', 'test-build-readme.R:13:3',
    'test-build-readme.R:32:3', 'test-build-site.R:3:3', 'test-check-win.R:6:3',
    'test-install.R:116:3', 'test-package.R:2:3', 'test-package.R:11:3',
    'test-run-source.R:2:3', 'test-run-source.R:17:3', 'test-run-source.R:33:3',
    'test-run-source.R:37:3', 'test-run-source.R:53:3', 'test-run-source.R:69:3',
    'test-sitrep.R:2:3', 'test-vignettes.R:17:3'
  • interactive() is not TRUE (1): 'test-check-doc.R:6:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-reload.R:7:3'): reload works ───────────────────────────────────
  Error in `install(pkg, quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
      ▆
   1. └─devtools::install(pkg, quiet = TRUE) at test-reload.R:7:3
  ── Error ('test-run-examples.R:3:3'): Can run an example ───────────────────────
  Error in `pkgload::load_all(path = path, reset = reset, recompile = recompile, 
      export_all = export_all, helpers = helpers, quiet = quiet, 
      ...)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
       ▆
    1. ├─testthat::expect_output(...) at test-run-examples.R:3:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::suppressMessages(run_examples(pkg = pkg, document = FALSE))
   11. │ └─base::withCallingHandlers(...)
   12. └─devtools::run_examples(pkg = pkg, document = FALSE)
   13.   └─devtools::load_all(pkg$path, reset = TRUE, export_all = FALSE)
   14.     └─pkgload::load_all(...)
  ── Error ('test-test.R:18:3'): Package can be tested with testthat not on search path ──
  Error in `pkgload::load_all(test_dir, export_all = args[["export_all"]], 
      helpers = args[["helpers"]], quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
       ▆
    1. └─devtools (local) test_test(pkg1) at test-test.R:18:3
    2.   ├─base::suppressMessages(test(..., reporter = "silent")) at test-test.R:2:3
    3.   │ └─base::withCallingHandlers(...)
    4.   └─devtools::test(..., reporter = "silent")
    5.     └─testthat::test_local(...)
    6.       └─testthat::test_dir(...)
    7.         └─testthat:::test_files(...)
    8.           └─testthat:::test_files_serial(...)
    9.             └─testthat:::test_files_setup_env(...)
   10.               └─pkgload::load_all(...)
  ── Error ('test-test.R:25:3'): Filtering works with devtools::test ─────────────
  Error in `pkgload::load_all(test_dir, export_all = args[["export_all"]], 
      helpers = args[["helpers"]], quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
       ▆
    1. └─devtools (local) test_test(test_path("testTest"), filter = "dummy") at test-test.R:25:3
    2.   ├─base::suppressMessages(test(..., reporter = "silent")) at test-test.R:2:3
    3.   │ └─base::withCallingHandlers(...)
    4.   └─devtools::test(..., reporter = "silent")
    5.     └─testthat::test_local(...)
    6.       └─testthat::test_dir(...)
    7.         └─testthat:::test_files(...)
    8.           └─testthat:::test_files_serial(...)
    9.             └─testthat:::test_files_setup_env(...)
   10.               └─pkgload::load_all(...)
  ── Error ('test-test.R:30:3'): devtools::test_active_file works ────────────────
  Error in `pkgload::load_all(test_dir, export_all = args[["export_all"]], 
      helpers = args[["helpers"]], quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
      ▆
   1. └─devtools (local) test_test_active_file(test_path("testTest/tests/testthat/test-dummy.R")) at test-test.R:30:3
   2.   ├─base::suppressMessages(test_active_file(..., reporter = "silent")) at test-test.R:5:3
   3.   │ └─base::withCallingHandlers(...)
   4.   └─devtools::test_active_file(..., reporter = "silent")
   5.     └─testthat::test_file(...)
   6.       └─testthat:::test_files(...)
   7.         └─testthat:::test_files_serial(...)
   8.           └─testthat:::test_files_setup_env(...)
   9.             └─pkgload::load_all(...)
  ── Error ('test-test.R:37:3'): TESTTHAT_PKG environment variable is set ────────
  Error in `pkgload::load_all(test_dir, export_all = args[["export_all"]], 
      helpers = args[["helpers"]], quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
       ▆
    1. └─devtools (local) test_test(test_path("testTest"), filter = "envvar", stop_on_failure = TRUE) at test-test.R:37:3
    2.   ├─base::suppressMessages(test(..., reporter = "silent")) at test-test.R:2:3
    3.   │ └─base::withCallingHandlers(...)
    4.   └─devtools::test(..., reporter = "silent")
    5.     └─testthat::test_local(...)
    6.       └─testthat::test_dir(...)
    7.         └─testthat:::test_files(...)
    8.           └─testthat:::test_files_serial(...)
    9.             └─testthat:::test_files_setup_env(...)
   10.               └─pkgload::load_all(...)
  ── Failure ('test-test.R:51:3'): stop_on_failure defaults to FALSE ─────────────
  `test_test(test_path("testTestWithFailure"))` threw an unexpected error.
  Message: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-test.R:51:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─devtools (local) test_test(test_path("testTestWithFailure"))
    8.   ├─base::suppressMessages(test(..., reporter = "silent")) at test-test.R:2:3
    9.   │ └─base::withCallingHandlers(...)
   10.   └─devtools::test(..., reporter = "silent")
   11.     └─testthat::test_local(...)
   12.       └─testthat::test_dir(...)
   13.         └─testthat:::test_files(...)
   14.           └─testthat:::test_files_serial(...)
   15.             └─testthat:::test_files_setup_env(...)
   16.               └─pkgload::load_all(...)
  ── Error ('test-test.R:55:3'): stop_on_failure defaults to FALSE ───────────────
  Error in `pkgload::load_all(test_dir, export_all = args[["export_all"]], 
      helpers = args[["helpers"]], quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-test.R:55:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─devtools (local) test_test(test_path("testTestWithFailure"), stop_on_failure = TRUE)
    8.   ├─base::suppressMessages(test(..., reporter = "silent")) at test-test.R:2:3
    9.   │ └─base::withCallingHandlers(...)
   10.   └─devtools::test(..., reporter = "silent")
   11.     └─testthat::test_local(...)
   12.       └─testthat::test_dir(...)
   13.         └─testthat:::test_files(...)
   14.           └─testthat:::test_files_serial(...)
   15.             └─testthat:::test_files_setup_env(...)
   16.               └─pkgload::load_all(...)
  ── Error ('test-uninstall.R:5:3'): uninstall() unloads and removes from library ──
  Error in `install(test_path("testHelp"), quiet = TRUE)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
      ▆
   1. └─devtools::install(test_path("testHelp"), quiet = TRUE) at test-uninstall.R:5:3
  ── Error ('test-vignettes.R:2:3'): Sweave vignettes copied into doc ────────────
  Error in `eval(code, test_env)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  ── Error ('test-vignettes.R:35:3'): Rmarkdown vignettes copied into doc ────────
  Error in `install(pkg, upgrade = "never", reload = FALSE, quick = TRUE, 
      quiet = quiet)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
      ▆
   1. ├─base::suppressMessages(build_vignettes(pkg, quiet = TRUE)) at test-vignettes.R:35:3
   2. │ └─base::withCallingHandlers(...)
   3. └─devtools::build_vignettes(pkg, quiet = TRUE)
   4.   └─devtools:::local_install(pkg, quiet = TRUE)
   5.     └─devtools::install(...)
  ── Error ('test-vignettes.R:46:3'): extra files copied and removed ─────────────
  Error in `install(pkg, upgrade = "never", reload = FALSE, quick = TRUE, 
      quiet = quiet)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
      ▆
   1. ├─base::suppressMessages(build_vignettes(pkg, quiet = TRUE)) at test-vignettes.R:46:3
   2. │ └─base::withCallingHandlers(...)
   3. └─devtools::build_vignettes(pkg, quiet = TRUE)
   4.   └─devtools:::local_install(pkg, quiet = TRUE)
   5.     └─devtools::install(...)
  ── Error ('test-vignettes.R:57:3'): .gitignore updated when building vignettes ──
  Error in `install(pkg, upgrade = "never", reload = FALSE, quick = TRUE, 
      quiet = quiet)`: lazy-load database '/home/hornik/tmp/scratch/RtmpHBjrVU/RLIBS_75b02288870b9/pkgbuild/R/pkgbuild.rdb' is corrupt
  Backtrace:
      ▆
   1. ├─base::suppressMessages(build_vignettes(pkg, quiet = TRUE)) at test-vignettes.R:57:3
   2. │ └─base::withCallingHandlers(...)
   3. └─devtools::build_vignettes(pkg, quiet = TRUE)
   4.   └─devtools:::local_install(pkg, quiet = TRUE)
   5.     └─devtools::install(...)
  
  [ FAIL 13 | WARN 22 | SKIP 19 | PASS 28 ]
  Error: Test failures
  Execution halted