Running ‘test-all.R’ [2s/4s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library('vcr')
  Loading required namespace: jsonlite
  > test_check("vcr")
  ── 1. Error: Cassette (@test-Cassette.R#10)  ───────────────────────────────────
  Please install 'httr'
  1: cl$eject() at testthat/test-Cassette.R:10
  2: webmockr::disable()
  3: unlist(lapply(http_lib_adapter_registry$adapters, function(z) {
         z$disable()
     }))
  4: lapply(http_lib_adapter_registry$adapters, function(z) {
         z$disable()
     })
  5: FUN(X[[i]], ...)
  6: z$disable()
  7: httr_mock(FALSE)
  8: check_for_pkg("httr")
  9: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ── 2. Failure: use_cassette fails well (@test-ause_cassette.R#37)  ─────────────
  `suppressMessages(use_cassette("foobar"))` threw an error with unexpected message.
  Expected match: "`vcr::use_cassette` requires a code block"
  Actual message: "Please install 'httr'"
  
  ── 3. Failure: use_cassette fails well (@test-ause_cassette.R#46)  ─────────────
  `suppressMessages(...)` threw an error with unexpected message.
  Expected match: "'record' value of 'stuff' is not in the allowed set"
  Actual message: "Please install 'httr'"
  
  ── 4. Failure: use_cassette fails well (@test-ause_cassette.R#52)  ─────────────
  `suppressMessages(...)` threw an error with unexpected message.
  Expected match: "'match_requests_on' values \\(stuff\\) is not in the allowed set"
  Actual message: "Please install 'httr'"
  
  ── 5. Failure: use_cassette fails well (@test-ause_cassette.R#58)  ─────────────
  `suppressMessages(...)` threw an error with unexpected message.
  Expected match: "update_content_length_header must be of class logical"
  Actual message: "Please install 'httr'"
  
  ── 6. Failure: use_cassette fails well (@test-ause_cassette.R#64)  ─────────────
  `suppressMessages(...)` threw an error with unexpected message.
  Expected match: "preserve_exact_body_bytes must be of class logical"
  Actual message: "Please install 'httr'"
  
  ── 7. Failure: use_cassette fails well (@test-ause_cassette.R#70)  ─────────────
  `suppressMessages(...)` threw an error with unexpected message.
  Expected match: "The requested VCR cassette persister \\(foobar\\) is not registered"
  Actual message: "Please install 'httr'"
  
  ── 8. Failure: use_cassette fails well (@test-ause_cassette.R#76)  ─────────────
  `suppressMessages(...)` threw an error with unexpected message.
  Expected match: "The requested VCR cassette serializer \\(howdy\\) is not registered"
  Actual message: "Please install 'httr'"
  
  ── 9. Error: cassettes works (@test-cassettes.R#7)  ────────────────────────────
  Please install 'httr'
  1: suppressMessages(insert_cassette("foobar")) at testthat/test-cassettes.R:7
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: insert_cassette("foobar")
  4: webmockr::enable()
  5: vapply(http_lib_adapter_registry$adapters, function(z) {
         z$enable()
     }, logical(1))
  6: FUN(X[[i]], ...)
  7: z$enable()
  8: httr_mock(TRUE)
  9: check_for_pkg("httr")
  10: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ── 10. Error: current_cassette works (@test-cassettes.R#31)  ───────────────────
  Please install 'httr'
  1: insert_cassette("rrrrrrrrrrr") at testthat/test-cassettes.R:31
  2: webmockr::enable()
  3: vapply(http_lib_adapter_registry$adapters, function(z) {
         z$enable()
     }, logical(1))
  4: FUN(X[[i]], ...)
  5: z$enable()
  6: httr_mock(TRUE)
  7: check_for_pkg("httr")
  8: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ── 11. Error: eject_cassette (@test-eject_cassette.R#5)  ───────────────────────
  Please install 'httr'
  1: insert_cassette("foobar") at testthat/test-eject_cassette.R:5
  2: webmockr::enable()
  3: vapply(http_lib_adapter_registry$adapters, function(z) {
         z$enable()
     }, logical(1))
  4: FUN(X[[i]], ...)
  5: z$enable()
  6: httr_mock(TRUE)
  7: check_for_pkg("httr")
  8: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ── 12. Error: UnhandledHTTPRequestError fails well (@test-errors.R#18)  ────────
  Please install 'httr'
  1: suppressMessages(insert_cassette("turtle")) at testthat/test-errors.R:18
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: insert_cassette("turtle")
  4: webmockr::enable()
  5: vapply(http_lib_adapter_registry$adapters, function(z) {
         z$enable()
     }, logical(1))
  6: FUN(X[[i]], ...)
  7: z$enable()
  8: httr_mock(TRUE)
  9: check_for_pkg("httr")
  10: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ── 13. Failure: UnhandledHTTPRequestError works as expected (@test-errors.R#37) 
  a$cassette inherits from `list` not `Cassette`.
  
  ── 14. Failure: UnhandledHTTPRequestError works as expected (@test-errors.R#38) 
  a$cassette$name not equal to "turtle".
  target is NULL, current is character
  
  ── 15. Error: (unknown) (@test-errors.R#48)  ───────────────────────────────────
  no cassette in use currently
  1: eject_cassette() at testthat/test-errors.R:48
  2: stop("no cassette in use currently", call. = FALSE)
  
  ── 16. Failure: insert_cassette fails well (@test-insert_cassette.R#11)  ───────
  `suppressMessages(insert_cassette("newbar", record = "stuff"))` threw an error with unexpected message.
  Expected match: "'record' value of 'stuff' is not in the allowed set"
  Actual message: "Please install 'httr'"
  
  ── 17. Failure: insert_cassette fails well (@test-insert_cassette.R#17)  ───────
  `suppressMessages(insert_cassette("newbar", match_requests_on = "stuff"))` threw an error with unexpected message.
  Expected match: "'match_requests_on' values \\(stuff\\) is not in the allowed set"
  Actual message: "Please install 'httr'"
  
  ── 18. Failure: insert_cassette fails well (@test-insert_cassette.R#23)  ───────
  `suppressMessages(insert_cassette("newbar3", update_content_length_header = 5))` threw an error with unexpected message.
  Expected match: "update_content_length_header must be of class logical"
  Actual message: "Please install 'httr'"
  
  ── 19. Failure: insert_cassette fails well (@test-insert_cassette.R#29)  ───────
  `suppressMessages(insert_cassette("newbar4", preserve_exact_body_bytes = 5))` threw an error with unexpected message.
  Expected match: "preserve_exact_body_bytes must be of class logical"
  Actual message: "Please install 'httr'"
  
  ── 20. Failure: insert_cassette fails well (@test-insert_cassette.R#35)  ───────
  `suppressMessages(insert_cassette("newbar5", persist_with = "foobar"))` threw an error with unexpected message.
  Expected match: "The requested VCR cassette persister \\(foobar\\) is not registered"
  Actual message: "Please install 'httr'"
  
  ── 21. Failure: insert_cassette fails well (@test-insert_cassette.R#41)  ───────
  `suppressMessages(insert_cassette("newbar6", serialize_with = "howdy"))` threw an error with unexpected message.
  Expected match: "The requested VCR cassette serializer \\(howdy\\) is not registered"
  Actual message: "Please install 'httr'"
  
  ── 22. Error: insert_cassette works as expected (@test-insert_cassette.R#49)  ──
  Please install 'httr'
  1: suppressMessages(insert_cassette("foobar3")) at testthat/test-insert_cassette.R:49
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: insert_cassette("foobar3")
  4: webmockr::enable()
  5: vapply(http_lib_adapter_registry$adapters, function(z) {
         z$enable()
     }, logical(1))
  6: FUN(X[[i]], ...)
  7: z$enable()
  8: httr_mock(TRUE)
  9: check_for_pkg("httr")
  10: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ── 23. Error: turned_off (@test-lightswitch.R#28)  ─────────────────────────────
  Please install 'httr'
  1: insert_cassette("adfadfdfadfadsf") at testthat/test-lightswitch.R:28
  2: webmockr::enable()
  3: vapply(http_lib_adapter_registry$adapters, function(z) {
         z$enable()
     }, logical(1))
  4: FUN(X[[i]], ...)
  5: z$enable()
  6: httr_mock(TRUE)
  7: check_for_pkg("httr")
  8: stop(sprintf("Please install '%s'", x), call. = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 160 SKIPPED: 3 FAILED: 23
  1. Error: Cassette (@test-Cassette.R#10) 
  2. Failure: use_cassette fails well (@test-ause_cassette.R#37) 
  3. Failure: use_cassette fails well (@test-ause_cassette.R#46) 
  4. Failure: use_cassette fails well (@test-ause_cassette.R#52) 
  5. Failure: use_cassette fails well (@test-ause_cassette.R#58) 
  6. Failure: use_cassette fails well (@test-ause_cassette.R#64) 
  7. Failure: use_cassette fails well (@test-ause_cassette.R#70) 
  8. Failure: use_cassette fails well (@test-ause_cassette.R#76) 
  9. Error: cassettes works (@test-cassettes.R#7) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted