Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  -- 1. Failure: NULL body gives empty data element (@test-body.r#12)  -----------
  out$data not equal to "".
  target is NULL, current is character
  
  -- 2. Failure: string/raw in body gives same string in data element (@test-body.
  out$data not equal to "test".
  target is NULL, current is character
  
  -- 3. Failure: string/raw in body gives same string in data element (@test-body.
  out$data not equal to "test".
  target is NULL, current is character
  
  -- 4. Failure: string/raw in body doesn't lose content type (@test-body.r#33)  -
  response$headers$`Content-Type` not equal to `content_type`.
  target is NULL, current is character
  
  -- 5. Failure: empty list gives empty body (@test-body.r#38)  ------------------
  out$data not equal to "".
  target is NULL, current is character
  
  -- 6. Failure: empty list gives empty body (@test-body.r#41)  ------------------
  out$data not equal to "".
  target is NULL, current is character
  
  -- 7. Failure: named list matches form results (encode = 'form') (@test-body.r#4
  out$form$a not equal to "1".
  target is NULL, current is character
  
  -- 8. Failure: named list matches form results (encode = 'form') (@test-body.r#4
  out$form$b not equal to "2".
  target is NULL, current is character
  
  -- 9. Failure: named list matches form results (encode = 'multipart') (@test-bod
  out$form$a not equal to "1".
  target is NULL, current is character
  
  -- 10. Failure: named list matches form results (encode = 'multipart') (@test-bo
  out$form$b not equal to "2".
  target is NULL, current is character
  
  -- 11. Failure: named list matches form results (encode = 'json') (@test-body.r#
  out$json$a[[1]] not equal to 1.
  target is NULL, current is numeric
  
  -- 12. Failure: named list matches form results (encode = 'json') (@test-body.r#
  out$json$b[[1]] not equal to 2.
  target is NULL, current is numeric
  
  -- 13. Failure: can do own encoding (@test-body.r#64)  -------------------------
  out$json not equal to list(a = 1, b = 2).
  target is NULL, current is list
  
  -- 14. Failure: NULL elements are automatically dropped (@test-body.r#69)  -----
  out$form not equal to list(x = "1").
  target is NULL, current is list
  
  -- 15. Failure: NULL elements are automatically dropped (@test-body.r#72)  -----
  out$form not equal to list(x = "1").
  target is NULL, current is list
  
  -- 16. Failure: file and form vals mixed give form and data elements (@test-body
  out$form$a not equal to "1".
  target is NULL, current is character
  
  -- 17. Error: file and form vals mixed give form and data elements (@test-body.r
  non-character argument
  1: expect_equal(strsplit(out$files$y, "\r?\n")[[1]], data) at testthat/test-body.r:78
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: strsplit(out$files$y, "\r?\n")
  
  -- 18. Error: single file matches contents on disk (@test-body.r#82)  ----------
  necessary data rewind wasn't possible
  1: round_trip(body = data_path) at testthat/test-body.r:82
  2: content(POST("http://httpbin.org/post", ...)) at testthat/test-body.r:4
  3: stopifnot(is.response(x))
  4: is.response(x)
  5: inherits(x, "response")
  6: POST("http://httpbin.org/post", ...)
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  -- 19. Failure: explicit content type overrides defaults (@test-body.r#93)  ----
  out$headers$`Content-Type` not equal to "application/json".
  target is NULL, current is character
  
  -- 20. Failure: basic authentication works (@test-config.r#9)  -----------------
  r$status_code not equal to 401.
  1/1 mismatches
  [1] 503 - 401 == 102
  
  -- 21. Failure: basic authentication works (@test-config.r#13)  ----------------
  r$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 22. Failure: basic authentication works (@test-config.r#17)  ----------------
  r$status_code not equal to 401.
  1/1 mismatches
  [1] 503 - 401 == 102
  
  -- 23. Failure: digest authentication works (@test-config.r#25)  ---------------
  r$status_code not equal to 401.
  1/1 mismatches
  [1] 503 - 401 == 102
  
  -- 24. Failure: digest authentication works (@test-config.r#29)  ---------------
  r$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 25. Failure: All headers captures headers from redirects (@test-header.r#21) 
  length(r3$all_headers) not equal to 3 + 1.
  1/1 mismatches
  [1] 2 - 4 == -2
  
  -- 26. Failure: http_error works with urls (@test-http-error.R#4)  -------------
  http_error("http://httpbin.org/status/200") isn't false.
  
  -- 27. Failure: http_error works with responses (@test-http-error.R#10)  -------
  http_error(r200) isn't false.
  
  -- 28. Failure: oauth2.0 signing works (@test-oauth.R#15)  ---------------------
  "Bearer ofNoArms" not equal to response_content$Authorization.
  Types not compatible: character is not NULL
  
  -- 29. Failure: oauth2.0 signing works (@test-oauth.R#16)  ---------------------
  `request_url` not equal to header_response$url.
  1/1 mismatches
  x[1]: "http://httpbin.org/headers"
  y[1]: "https://httpbin.org/headers"
  
  -- 30. Failure: status codes returned as expected (@test-response.r#6)  --------
  GET("http://httpbin.org/status/320")$status_code not equal to 320.
  1/1 mismatches
  [1] 503 - 320 == 183
  
  -- 31. Failure: status codes returned as expected (@test-response.r#7)  --------
  GET("http://httpbin.org/status/404")$status_code not equal to 404.
  1/1 mismatches
  [1] 503 - 404 == 99
  
  -- 32. Failure: status codes returned as expected (@test-response.r#8)  --------
  GET("http://httpbin.org/status/418")$status_code not equal to 418.
  1/1 mismatches
  [1] 503 - 418 == 85
  
  -- 33. Failure: DELETE deletes (@test-response.r#13)  --------------------------
  GET("http://httpbin.org/delete")$status_code not equal to 405.
  1/1 mismatches
  [1] 503 - 405 == 98
  
  -- 34. Failure: DELETE deletes (@test-response.r#14)  --------------------------
  DELETE("http://httpbin.org/delete")$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 35. Failure: POST posts (@test-response.r#18)  ------------------------------
  GET("http://httpbin.org/post")$status_code not equal to 405.
  1/1 mismatches
  [1] 503 - 405 == 98
  
  -- 36. Failure: POST posts (@test-response.r#19)  ------------------------------
  POST("http://httpbin.org/post")$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 37. Failure: PATCH patches (@test-response.r#23)  ---------------------------
  GET("http://httpbin.org/patch")$status_code not equal to 405.
  1/1 mismatches
  [1] 503 - 405 == 98
  
  -- 38. Failure: PATCH patches (@test-response.r#24)  ---------------------------
  PATCH("http://httpbin.org/patch")$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 39. Failure: PUT puts (@test-response.r#28)  --------------------------------
  GET("http://httpbin.org/put")$status_code not equal to 405.
  1/1 mismatches
  [1] 503 - 405 == 98
  
  -- 40. Failure: PUT puts (@test-response.r#29)  --------------------------------
  PUT("http://httpbin.org/put")$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 41. Error: headers returned as expected (@test-response.r#40)  --------------
  attempt to set an attribute on NULL
  1: expect_equal(round_trip(a = 1)$a, "1") at testthat/test-response.r:40
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: round_trip(a = 1)
  
  -- 42. Failure: application/json responses parsed as lists (@test-response.r#55)
  response$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 43. Failure: application/json responses parsed as lists (@test-response.r#55)
  `expected_reply` not equal to content(response).
  Names: 1 string mismatch
  Length mismatch: comparison on first 1 components
  Component 1: 1 string mismatch
  
  -- 44. Failure: application/json responses parsed as lists (@test-response.r#56)
  response$status_code not equal to 200.
  1/1 mismatches
  [1] 503 - 200 == 303
  
  -- 45. Failure: application/json responses parsed as lists (@test-response.r#56)
  `expected_reply` not equal to content(response).
  Names: 1 string mismatch
  Length mismatch: comparison on first 1 components
  Component 1: 1 string mismatch
  
  == testthat results  ===========================================================
  OK: 92 SKIPPED: 2 FAILED: 45
  1. Failure: NULL body gives empty data element (@test-body.r#12) 
  2. Failure: string/raw in body gives same string in data element (@test-body.r#22) 
  3. Failure: string/raw in body gives same string in data element (@test-body.r#25) 
  4. Failure: string/raw in body doesn't lose content type (@test-body.r#33) 
  5. Failure: empty list gives empty body (@test-body.r#38) 
  6. Failure: empty list gives empty body (@test-body.r#41) 
  7. Failure: named list matches form results (encode = 'form') (@test-body.r#46) 
  8. Failure: named list matches form results (encode = 'form') (@test-body.r#47) 
  9. Failure: named list matches form results (encode = 'multipart') (@test-body.r#52) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted