Running 'testthat.R' [458s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  [ FAIL 11 | WARN 0 | SKIP 7 | PASS 146 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Currently broken (1)
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-body.r:40:3'): empty list gives empty body ───────────────────
  out$data not equal to "".
  target is NULL, current is character
  ── Failure ('test-body.r:48:3'): named list matches form results (encode = 'form') ──
  out$form$a not equal to "1".
  target is NULL, current is character
  ── Failure ('test-body.r:49:3'): named list matches form results (encode = 'form') ──
  out$form$b not equal to "2".
  target is NULL, current is character
  ── Failure ('test-body.r:54:3'): named list matches form results (encode = 'multipart') ──
  out$form$a not equal to "1".
  target is NULL, current is character
  ── Failure ('test-body.r:55:3'): named list matches form results (encode = 'multipart') ──
  out$form$b not equal to "2".
  target is NULL, current is character
  ── Failure ('test-body.r:60:3'): named list matches form results (encode = 'json') ──
  out$json$a[[1]] not equal to 1.
  target is NULL, current is numeric
  ── Failure ('test-body.r:61:3'): named list matches form results (encode = 'json') ──
  out$json$b[[1]] not equal to 2.
  target is NULL, current is numeric
  ── Failure ('test-response.r:11:3'): DELETE deletes ────────────────────────────
  GET("http://httpbin.org/delete")$status_code not equal to 405.
  1/1 mismatches
  [1] 504 - 405 == 99
  ── Failure ('test-response.r:22:3'): PATCH patches ─────────────────────────────
  PATCH("http://httpbin.org/patch")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  ── Failure ('test-response.r:26:3'): PUT puts ──────────────────────────────────
  GET("http://httpbin.org/put")$status_code not equal to 405.
  1/1 mismatches
  [1] 504 - 405 == 99
  ── Error ('test-response.r:38:3'): headers returned as expected ────────────────
  Error in `names(headers) <- tolower(names(headers))`: attempt to set an attribute on NULL
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(round_trip(a = 1)$a, "1") at test-response.r:38:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─httr (local) round_trip(a = 1)
  
  [ FAIL 11 | WARN 0 | SKIP 7 | PASS 146 ]
  Error: Test failures
  Execution halted