Running ‘testthat.R’ [5s/416s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  [ FAIL 8 | WARN 0 | SKIP 7 | PASS 149 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Currently broken (1)
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-body.r:35:3'): 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: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
  ── Error ('test-body.r:93:3'): single file matches contents on disk ────────────
  Error in `strsplit(out$data, "\r?\n")`: non-character argument
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(strsplit(out$data, "\r?\n")[[1]], data) at test-body.r:93:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::strsplit(out$data, "\r?\n")
  ── Failure ('test-body.r:103:3'): explicit content type overrides defaults ─────
  out$headers$`Content-Type` not equal to "application/json".
  target is NULL, current is character
  ── Failure ('test-response.r:7:3'): 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:17:3'): POST posts ────────────────────────────────
  POST("http://httpbin.org/post")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  ── Failure ('test-response.r:27:3'): PUT puts ──────────────────────────────────
  PUT("http://httpbin.org/put")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  
  [ FAIL 8 | WARN 0 | SKIP 7 | PASS 149 ]
  Error: Test failures
  Execution halted