Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [16s/26s]
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")
  ── 1. Error: Can run an example (@test-examples.R#5)  ──────────────────────────
  'where' must be an environment
  Backtrace:
    1. testthat::expect_output(...)
   10. devtools::run_examples(pkg = pkg, document = FALSE)
   11. devtools::load_all(pkg$path, reset = TRUE, export_all = FALSE)
   12. ellipsis::check_dots_used(...)
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  ── 2. Error: install_deps passes default args to remotes::install_deps (@test-in
  'where' must be an environment
  Backtrace:
   1. devtools:::expect_passes_args(...)
   4. ellipsis::check_dots_used(...)
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  ── 3. Error: install_deps passes custom args to remotes::install_deps (@test-ins
  'where' must be an environment
  Backtrace:
   1. devtools:::expect_passes_args(...)
   4. ellipsis::check_dots_used(...)
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  ── 4. Error: install_deps passes ellipsis args to remotes::install_deps (@test-i
  'where' must be an environment
  Backtrace:
   1. devtools:::expect_passes_args(...)
   4. ellipsis::check_dots_used(...)
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  
  ── 5. Error: install_dev_deps passes default args to remotes::install_deps (@tes
  'where' must be an environment
  Backtrace:
   1. devtools:::expect_passes_args(...)
   4. ellipsis::check_dots_used(...)
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  
  ── 6. Error: install_dev_deps passes custom args to remotes::install_deps (@test
  'where' must be an environment
  Backtrace:
   1. devtools:::expect_passes_args(...)
   4. ellipsis::check_dots_used(...)
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  
  ── 7. Error: install_dev_deps passes ellipsis args to remotes::install_deps (@te
  'where' must be an environment
  Backtrace:
   1. devtools:::expect_passes_args(...)
   4. ellipsis::check_dots_used(...)
   6. ellipsis:::exit_handler(action)
   7. base::bquote(...)
  
  ── 8. Error: reload works (@test-reload.R#6)  ──────────────────────────────────
  'where' must be an environment
  Backtrace:
   1. devtools::install(pkg, quiet = TRUE)
   2. ellipsis::check_dots_used(...)
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  ── 9. Error: Package can be tested with testthat not on search path (@test-test.
  'where' must be an environment
  Backtrace:
   1. devtools::test("testTest", reporter = "stop")
   2. devtools::load_all(pkg$path, quiet = TRUE, export_all = export_all)
   3. ellipsis::check_dots_used(...)
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  ── 10. Error: (unknown) (@test-test.R#16)  ─────────────────────────────────────
  could not find function "test_that"
  
  
  Attaching package: 'testthat'
  
  The following object is masked from 'package:devtools':
  
      test_file
  
  ── 11. Error: uninstall() unloads and removes from library (@test-uninstall.R#15
  'where' must be an environment
  Backtrace:
   1. devtools::install("testHelp", quiet = TRUE)
   2. ellipsis::check_dots_used(...)
   4. ellipsis:::exit_handler(action)
   5. base::bquote(...)
  
  Error in bquote(on.exit({ : 'where' must be an environment
  ── 12. Error: Sweave vignettes copied into doc (@test-vignettes.R#13)  ─────────
  callr subprocess failed: 'where' must be an environment
  Backtrace:
   1. devtools::build_vignettes("testVignettes")
   2. callr::r(...)
   3. callr:::get_result(output = out, options)
   4. throw(newerr, parent = remerr[[2]])
  
  Error in bquote(on.exit({ : 'where' must be an environment
  ── 13. Error: Built files are updated (@test-vignettes.R#30)  ──────────────────
  callr subprocess failed: 'where' must be an environment
  Backtrace:
   1. devtools::build_vignettes("testVignettes")
   2. callr::r(...)
   3. callr:::get_result(output = out, options)
   4. throw(newerr, parent = remerr[[2]])
  
  Error in bquote(on.exit({ : 'where' must be an environment
  ── 14. Error: Rmarkdown vignettes copied into doc (@test-vignettes.R#53)  ──────
  callr subprocess failed: 'where' must be an environment
  Backtrace:
   1. devtools::build_vignettes(pkg)
   2. callr::r(...)
   3. callr:::get_result(output = out, options)
   4. throw(newerr, parent = remerr[[2]])
  
  Error in bquote(on.exit({ : 'where' must be an environment
  ── 15. Error: Extra files copied and removed (@test-vignettes.R#84)  ───────────
  callr subprocess failed: 'where' must be an environment
  Backtrace:
   1. devtools::build_vignettes(pkg)
   2. callr::r(...)
   3. callr:::get_result(output = out, options)
   4. throw(newerr, parent = remerr[[2]])
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 10 | SKIPPED: 10 | WARNINGS: 0 | FAILED: 15 ]
  1. Error: Can run an example (@test-examples.R#5) 
  2. Error: install_deps passes default args to remotes::install_deps (@test-install.R#50) 
  3. Error: install_deps passes custom args to remotes::install_deps (@test-install.R#59) 
  4. Error: install_deps passes ellipsis args to remotes::install_deps (@test-install.R#68) 
  5. Error: install_dev_deps passes default args to remotes::install_deps (@test-install.R#77) 
  6. Error: install_dev_deps passes custom args to remotes::install_deps (@test-install.R#86) 
  7. Error: install_dev_deps passes ellipsis args to remotes::install_deps (@test-install.R#95) 
  8. Error: reload works (@test-reload.R#6) 
  9. Error: Package can be tested with testthat not on search path (@test-test.R#10) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted