Running ‘testthat.R’ [5s/417s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  [ FAIL 9 | WARN 0 | SKIP 7 | PASS 149 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Currently broken (1)
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-body.r:12:3'): NULL body gives empty data element ────────────
  out$data not equal to "".
  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:69:3'): decimal precision is preserved (encode = 'json') ──
  out$data not equal to "{\"a\":0.867530986753099}".
  target is NULL, current is character
  ── Failure ('test-body.r:79:3'): NULL elements are automatically dropped ───────
  out$form not equal to list(x = "1").
  target is NULL, current is list
  ── Failure ('test-http-error.R:4:3'): http_error works with urls ───────────────
  http_error("http://httpbin.org/status/200") is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── 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:26:3'): 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:3'): PUT puts ──────────────────────────────────
  PUT("http://httpbin.org/put")$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  
  [ FAIL 9 | WARN 0 | SKIP 7 | PASS 149 ]
  Error: Test failures
  Execution halted