Running 'testthat.R' [4s/336s]
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 145 ]
  
  == 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:22'): string/raw in body gives same string in data element --
  out$data not equal to "test".
  target is NULL, current is character
  -- Failure ('test-body.r:43'): 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:82'): NULL elements are automatically dropped ---------
  out$form not equal to list(x = "1").
  target is NULL, current is list
  -- Error ('test-body.r:93'): single file matches contents on disk --------------
  Error in `strsplit(out$data, "\r?\n")`: non-character argument
  Backtrace:
      x
   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-http-head.r:5'): HEAD succeeds regardless of wrapper ---------
  http_error(VERB("HEAD", "https://httpbin.org")) is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  -- 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] 502 - 320 == 182
  -- 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:
      x
   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 145 ]
  Error: Test failures
  Execution halted