Running ‘testthat.R’ [4s/498s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  [ FAIL 18 | WARN 0 | SKIP 7 | PASS 139 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Currently broken (1)
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-body.r:12'): NULL body gives empty data element ──────────────
  out$data not equal to "".
  target is NULL, current is character
  ── Failure ('test-body.r:35'): string/raw in body doesn't lose content type ────
  response$headers$`Content-Type` not equal to `content_type`.
  target is NULL, current is character
  ── Failure ('test-body.r:40'): empty list gives empty body ─────────────────────
  out$data not equal to "".
  target is NULL, current is character
  ── Failure ('test-body.r:60'): 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'): named list matches form results (encode = 'json') ──
  out$json$b[[1]] not equal to 2.
  target is NULL, current is numeric
  ── Failure ('test-body.r:69'): decimal precision is preserved (encode = 'json') ──
  out$data not equal to "{\"a\":0.867530986753099}".
  target is NULL, current is character
  ── Failure ('test-http-error.R:4'): http_error works with urls ─────────────────
  http_error("http://httpbin.org/status/200") is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── Failure ('test-oauth.R:15'): oauth2.0 signing works ─────────────────────────
  "Bearer ofNoArms" not equal to response_content$Authorization.
  Types not compatible: character is not NULL
  ── Failure ('test-response.r:5'): status codes returned as expected ────────────
  GET("http://httpbin.org/status/320")$status_code not equal to 320.
  1/1 mismatches
  [1] 504 - 320 == 184
  ── Failure ('test-response.r:7'): status codes returned as expected ────────────
  GET("http://httpbin.org/status/418")$status_code not equal to 418.
  1/1 mismatches
  [1] 504 - 418 == 86
  ── Failure ('test-response.r:12'): DELETE deletes ──────────────────────────────
  DELETE("http://httpbin.org/delete")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  ── Failure ('test-response.r:16'): POST posts ──────────────────────────────────
  GET("http://httpbin.org/post")$status_code not equal to 405.
  1/1 mismatches
  [1] 504 - 405 == 99
  ── Failure ('test-response.r:17'): POST posts ──────────────────────────────────
  POST("http://httpbin.org/post")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  ── Failure ('test-response.r:21'): PATCH patches ───────────────────────────────
  GET("http://httpbin.org/patch")$status_code not equal to 405.
  1/1 mismatches
  [1] 504 - 405 == 99
  ── Failure ('test-response.r:22'): 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'): PUT puts ────────────────────────────────────
  GET("http://httpbin.org/put")$status_code not equal to 405.
  1/1 mismatches
  [1] 504 - 405 == 99
  ── Failure ('test-response.r:27'): PUT puts ────────────────────────────────────
  PUT("http://httpbin.org/put")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  ── Error ('test-response.r:38'): 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 18 | WARN 0 | SKIP 7 | PASS 139 ]
  Error: Test failures
  Execution halted