Running ‘has-devel.R’ [1s/2s]
  Running ‘test-that.R’ [17s/54s]
Running the tests in ‘tests/test-that.R’ failed.
Complete output:
  > library(testthat)
  > test_check("devtools")
  Loading required package: devtools
  
  Attaching package: 'devtools'
  
  The following object is masked from 'package:testthat':
  
      setup
  
  ── 1. Error: data available when lazydata not true (@test-data.r#4)  ───────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testData") at testthat/test-data.r:4
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 2. Error: data available when lazydata is true (@test-data.r#31)  ───────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testDataLazy") at testthat/test-data.r:31
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 3. Error: data available when lazydata not true, and export_all is FALSE (@te
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testData", export_all = FALSE) at testthat/test-data.r:45
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 4. Error: data available when lazydata is true, and export_all is FALSE (@tes
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testDataLazy", export_all = FALSE) at testthat/test-data.r:69
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 5. Error: Warned about dependency versions (@test-depend.r#5)  ──────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: expect_warning(load_all("testImportVersion"), "Need grid >=") at testthat/test-depend.r:5
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: load_all("testImportVersion")
  7: check_suggested("roxygen2")
  8: stop(msg, call. = FALSE)
  
  ── 6. Failure: Error on missing dependencies (@test-depend.r#15)  ──────────────
  `load_all("testImportMissing")` threw an error with unexpected message.
  Expected match: "missingpackage not available"
  Actual message: "'roxygen2' >= 5.0.0 must be installed for this functionality."
  
  ── 7. Error: Error on missing dependencies (@test-depend.r#18)  ────────────────
  Namespace not found for testImportMissing. Is it loaded?
  1: unload("testImportMissing") at testthat/test-depend.r:18
  2: dev_meta(pkg$package)
  3: stop("Namespace not found for ", name, ". Is it loaded?")
  
  ── 8. Error: Packages in depends are required (@test-depend.r#22)  ─────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testDependMissing") at testthat/test-depend.r:22
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 9. Error: load_all() compiles and loads DLLs (@test-dll.r#43)  ──────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testDllLoad", reset = TRUE, quiet = TRUE) at testthat/test-dll.r:43
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 10. Error: Specific functions from DLLs listed in NAMESPACE can be called (@t
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testDllLoad", quiet = TRUE) at testthat/test-dll.r:81
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 11. Error: load_all() can compile and load DLLs linked to Rcpp (@test-dll.r#1
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testDllRcpp", reset = TRUE, quiet = TRUE) at testthat/test-dll.r:109
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 12. Error: help and ? find files for devtools-loaded packages (@test-help.r#4
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testHelp") at testthat/test-help.r:40
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 13. Error: Imported objects are copied to package environment (@test-imports.
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-imports.r:4
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 14. Error: Imported objects are be re-exported (@test-imports.r#30)  ────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-imports.r:30
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 15. Error: use_data (@test-infrastructure.r#75)  ────────────────────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: local({
         expect_false(exists("global_test_data_item_to_save"))
         expect_false(exists("local_test_data_item_to_save"))
         expect_false(exists("system_test_data_item_to_save"))
         expect_warning(load_all("testUseData"), "Objects listed as exports, but not present in namespace: sysdata_export")
         on.exit(unload("testUseData"), add = TRUE)
         expect_false(exists("global_test_data_item_to_save"))
         expect_false(exists("local_test_data_item_to_save"))
         expect_equal(system_test_data_item_to_save, 42L)
         data(global_test_data_item_to_save, envir = environment())
         data(local_test_data_item_to_save, envir = environment())
         expect_equal(global_test_data_item_to_save, 42L)
         expect_equal(local_test_data_item_to_save, 42L)
     }) at testthat/test-infrastructure.r:75
  2: eval.parent(substitute(eval(quote(expr), envir)))
  3: eval(expr, p)
  4: eval(expr, p)
  5: eval(quote({
         expect_false(exists("global_test_data_item_to_save"))
         expect_false(exists("local_test_data_item_to_save"))
         expect_false(exists("system_test_data_item_to_save"))
         expect_warning(load_all("testUseData"), "Objects listed as exports, but not present in namespace: sysdata_export")
         on.exit(unload("testUseData"), add = TRUE)
         expect_false(exists("global_test_data_item_to_save"))
         expect_false(exists("local_test_data_item_to_save"))
         expect_equal(system_test_data_item_to_save, 42L)
         data(global_test_data_item_to_save, envir = environment())
         data(local_test_data_item_to_save, envir = environment())
         expect_equal(global_test_data_item_to_save, 42L)
         expect_equal(local_test_data_item_to_save, 42L)
     }), new.env())
  6: eval(quote({
         expect_false(exists("global_test_data_item_to_save"))
         expect_false(exists("local_test_data_item_to_save"))
         expect_false(exists("system_test_data_item_to_save"))
         expect_warning(load_all("testUseData"), "Objects listed as exports, but not present in namespace: sysdata_export")
         on.exit(unload("testUseData"), add = TRUE)
         expect_false(exists("global_test_data_item_to_save"))
         expect_false(exists("local_test_data_item_to_save"))
         expect_equal(system_test_data_item_to_save, 42L)
         data(global_test_data_item_to_save, envir = environment())
         data(local_test_data_item_to_save, envir = environment())
         expect_equal(global_test_data_item_to_save, 42L)
         expect_equal(local_test_data_item_to_save, 42L)
     }), new.env())
  7: expect_warning(load_all("testUseData"), "Objects listed as exports, but not present in namespace: sysdata_export") at testthat/test-infrastructure.r:80
  8: quasi_capture(enquo(object), capture_warnings, label = label)
  9: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  10: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  11: eval_bare(get_expr(quo), get_env(quo))
  12: load_all("testUseData")
  13: check_suggested("roxygen2")
  14: stop(msg, call. = FALSE)
  
  ── 16. Error: If collate absent, load in alphabetical order (@test-load-collate.
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testCollateAbsent") at testthat/test-load-collate.r:4
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 17. Error: Warned about files missing from collate, but they're still loaded 
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: expect_message(load_all("testCollateMissing"), "a.r") at testthat/test-load-collate.r:12
  2: quasi_capture(enquo(object), capture_messages, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: load_all("testCollateMissing")
  7: check_suggested("roxygen2")
  8: stop(msg, call. = FALSE)
  
  ── 18. Error: Extra files in collate don't error, but warn (@test-load-collate.r
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: expect_message(load_all("testCollateExtra"), "b.r") at testthat/test-load-collate.r:21
  2: quasi_capture(enquo(object), capture_messages, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: load_all("testCollateExtra")
  7: check_suggested("roxygen2")
  8: stop(msg, call. = FALSE)
  
  ── 19. Error: DESCRIPTION Collate field, with latest @includes, is recognised by
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: expect_output(expect_message(load_all(test_pkg), "Loading testCollateOrder"), "Updating collate directive") at testthat/test-load-collate.r:40
  2: quasi_capture(enquo(object), capture_output, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: capture_output_lines(code, print, width = width)
  5: eval_with_output(code, print = print, width = width)
  6: withr::with_output_sink(temp, withVisible(code))
  7: force(code)
  8: withVisible(code)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: expect_message(load_all(test_pkg), "Loading testCollateOrder")
  11: quasi_capture(enquo(object), capture_messages, label = label)
  12: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  13: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  14: eval_bare(get_expr(quo), get_env(quo))
  15: load_all(test_pkg)
  16: check_suggested("roxygen2")
  17: stop(msg, call. = FALSE)
  
  ── 20. Error: hooks called in correct order (@test-load-hooks.r#23)  ───────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testHooks") at testthat/test-load-hooks.r:23
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 21. Error: onLoad and onAttach (@test-load-hooks.r#47)  ─────────────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testLoadHooks") at testthat/test-load-hooks.r:47
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 22. Error: onUnload (@test-load-hooks.r#136)  ───────────────────────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testLoadHooks") at testthat/test-load-hooks.r:136
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 23. Error: Package root and subdirectory is working directory when loading (@
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: expect_message(load_all("testLoadDir"), "[|].*/testLoadDir[|]") at testthat/test-load.r:4
  2: quasi_capture(enquo(object), capture_messages, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: load_all("testLoadDir")
  7: check_suggested("roxygen2")
  8: stop(msg, call. = FALSE)
  
  ── 24. Error: devtools metadata for load hooks (@test-metadata.r#6)  ───────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testLoadHooks") at testthat/test-metadata.r:6
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 25. Error: dev_packages() lists devtools-loaded packages (@test-metadata.r#32
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-metadata.r:32
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 26. Error: Loaded namespaces have correct version (@test-namespace.r#22)  ───
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:22
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 27. Error: Exported objects are visible from global environment (@test-namesp
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:31
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 28. Error: Missing exports don't result in error (@test-namespace.r#47)  ────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: expect_warning(load_all("testMissingNsObject")) at testthat/test-namespace.r:47
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: load_all("testMissingNsObject")
  7: check_suggested("roxygen2")
  8: stop(msg, call. = FALSE)
  
  ── 29. Error: All objects are loaded into namespace environment (@test-namespace
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:55
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 30. Error: All objects are copied to package environment (@test-namespace.r#6
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:64
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 31. Error: Unloading and reloading a package works (@test-namespace.r#80)  ──
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:80
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 32. Error: Namespace, imports, and package environments have correct hierarch
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:103
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 33. Error: unload() removes package environments from search (@test-namespace
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:121
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 34. Error: Environments have the correct attributes (@test-namespace.r#145)  
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testNamespace") at testthat/test-namespace.r:145
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 35. Error: it can load from outside of package root (@test-package.R#5)  ────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all(file.path("testHooks")) at testthat/test-package.R:5
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 36. Error: importing an S4 exported by another pkg with export_all = FALSE (@
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testS4export", export_all = FALSE) at testthat/test-s4-export.r:5
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 37. Error: (unknown) (@test-s4-sort.r#3)  ───────────────────────────────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: suppressMessages(load_all("testS4sort")) at testthat/test-s4-sort.r:3
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: load_all("testS4sort")
  4: check_suggested("roxygen2")
  5: stop(msg, call. = FALSE)
  
  ── 38. Error: loading and reloading s4 classes (@test-s4-unload.r#25)  ─────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testS4union") at testthat/test-s4-unload.r:25
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 39. Error: system.file returns correct values when used with load_all (@test-
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testShim") at testthat/test-shim.r:19
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 40. Error: shimmed system.file respects mustWork (@test-shim.r#52)  ─────────
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testShim") at testthat/test-shim.r:52
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 41. Error: Shimmed system.file returns correct values when used with load_all
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: load_all("testShim") at testthat/test-shim.r:63
  2: check_suggested("roxygen2")
  3: stop(msg, call. = FALSE)
  
  ── 42. Error: Package can be tested with testthat not on search path (@test-test
  'roxygen2' >= 5.0.0 must be installed for this functionality.
  1: test("testTest", reporter = "stop") at testthat/test-test.r:10
  2: load_all(pkg, quiet = TRUE)
  3: check_suggested("roxygen2")
  4: stop(msg, call. = FALSE)
  
  ── 43. Error: (unknown) (@test-test.r#16)  ─────────────────────────────────────
  could not find function "test_that"
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "could not find function \"test_that\"", quote(test_that("Filtering works with devtools::test", 
         {
             test("testTest", filter = "dummy", reporter = "stop")
             expect_true(TRUE)
         }))) at testthat/test-test.r:16
  2: eval(code, test_env)
  
  
  Attaching package: 'testthat'
  
  The following object is masked from 'package:devtools':
  
      setup
  
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 185 SKIPPED: 11 FAILED: 43
  1. Error: data available when lazydata not true (@test-data.r#4) 
  2. Error: data available when lazydata is true (@test-data.r#31) 
  3. Error: data available when lazydata not true, and export_all is FALSE (@test-data.r#45) 
  4. Error: data available when lazydata is true, and export_all is FALSE (@test-data.r#69) 
  5. Error: Warned about dependency versions (@test-depend.r#5) 
  6. Failure: Error on missing dependencies (@test-depend.r#15) 
  7. Error: Error on missing dependencies (@test-depend.r#18) 
  8. Error: Packages in depends are required (@test-depend.r#22) 
  9. Error: load_all() compiles and loads DLLs (@test-dll.r#43) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted