Running ‘testthat.R’ [4s/480s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  [ FAIL 7 | WARN 0 | SKIP 7 | PASS 151 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Currently broken (1)
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-body.r:43'): empty list gives empty body ─────────────────────
  out$data not equal to "".
  target is NULL, current is character
  ── 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: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:54'): application/json responses parsed as lists ──
  response$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  Backtrace:
      ▆
   1. └─httr (local) test_user_agent() at test-response.r:54:2
   2.   └─testthat::expect_equal(response$status_code, 200) at test-response.r:49:4
  ── Failure ('test-response.r:54'): application/json responses parsed as lists ──
  `expected_reply` not equal to content(response).
  Names: 1 string mismatch
  Attributes: < names for current but not for target >
  Attributes: < Length mismatch: comparison on first 0 components >
  Length mismatch: comparison on first 1 components
  Component 1: Modes: character, externalptr
  Component 1: target is character, current is externalptr
  Backtrace:
      ▆
   1. └─httr (local) test_user_agent() at test-response.r:54:2
   2.   └─testthat::expect_equal(expected_reply, content(response)) at test-response.r:51:4
  ── Failure ('test-response.r:55'): application/json responses parsed as lists ──
  response$status_code not equal to 200.
  1/1 mismatches
  [1] 504 - 200 == 304
  Backtrace:
      ▆
   1. └─httr (local) test_user_agent("gunicorn-client/0.1") at test-response.r:55:2
   2.   └─testthat::expect_equal(response$status_code, 200) at test-response.r:49:4
  ── Failure ('test-response.r:55'): application/json responses parsed as lists ──
  `expected_reply` not equal to content(response).
  Names: 1 string mismatch
  Attributes: < names for current but not for target >
  Attributes: < Length mismatch: comparison on first 0 components >
  Length mismatch: comparison on first 1 components
  Component 1: Modes: character, externalptr
  Component 1: target is character, current is externalptr
  Backtrace:
      ▆
   1. └─httr (local) test_user_agent("gunicorn-client/0.1") at test-response.r:55:2
   2.   └─testthat::expect_equal(expected_reply, content(response)) at test-response.r:51:4
  
  [ FAIL 7 | WARN 0 | SKIP 7 | PASS 151 ]
  Error: Test failures
  Execution halted