Running ‘testthat.R’ [2s/373s]
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.r#22) 
  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.r#25) 
  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#46) 
  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#47) 
  out$form$b not equal to "2".
  target is NULL, current is character
  
  
  9. Failure: named list matches form results (encode = 'multipart') (@test-body.r#52) 
  out$form$a not equal to "1".
  target is NULL, current is character
  
  
  10. Failure: named list matches form results (encode = 'multipart') (@test-body.r#53) 
  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#58) 
  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#59) 
  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.r#77) 
  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#78) 
  non-character argument
  1: expect_equal(strsplit(out$files$y, "\r?\n")[[1]], data) at testthat/test-body.r:78
  2: compare(object, expected, ...)
  3: strsplit(out$files$y, "\r?\n")
  
  18. Error: single file matches contents on disk (@test-body.r#83) --------------
  non-character argument
  1: expect_equal(strsplit(out$data, "\r?\n")[[1]], data) at testthat/test-body.r:83
  2: compare(object, expected, ...)
  3: strsplit(out$data, "\r?\n")
  
  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#18) ---
  length(r1$all_headers) not equal to 1 + 1.
  1/1 mismatches
  [1] 1 - 2 == -1
  
  
  26. Failure: All headers captures headers from redirects (@test-header.r#21) ---
  length(r3$all_headers) not equal to 3 + 1.
  1/1 mismatches
  [1] 1 - 4 == -3
  
  
  27. Failure: http_error works with urls (@test-http-error.R#4) -----------------
  http_error("http://httpbin.org/status/200") isn't false.
  
  
  28. Failure: http_error works with responses (@test-http-error.R#10) -----------
  http_error(r200) isn't false.
  
  
  29. Failure: oauth2.0 signing works (@test-oauth.R#15) -------------------------
  "Bearer ofNoArms" not equal to response_content$Authorization.
  Types not compatible: character vs NULL
  
  
  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
  
  
  testthat results ================================================================
  OK: 82 SKIPPED: 2 FAILED: 31
  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