Running ‘testthat.R’ [2s/58s]
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. Error: named list matches form results (encode = 'form') (@test-body.r#45)
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: round_trip(body = list(a = 1, b = 2), encode = "form") at testthat/test-body.r:45
  2: content(POST("http://httpbin.org/post", ...)) at testthat/test-body.r:4
  3: stopifnot(is.response(x))
  4: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), 
         error = function(e) {
             e$call <- cl.i
             stop(e)
         }), warning = function(w) {
         w$call <- cl.i
         w
     })
  5: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), error = function(e) {
         e$call <- cl.i
         stop(e)
     })
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 8. Failure: named list matches form results (encode = 'multipart') (@test-bod
  out$form$a not equal to "1".
  target is NULL, current is character
  
  ── 9. Failure: named list matches form results (encode = 'multipart') (@test-bod
  out$form$b not equal to "2".
  target is NULL, current is character
  
  ── 10. 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
  
  ── 11. 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
  
  ── 12. 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
  
  ── 13. Failure: NULL elements are automatically dropped (@test-body.r#69)  ─────
  out$form not equal to list(x = "1").
  target is NULL, current is list
  
  ── 14. Failure: NULL elements are automatically dropped (@test-body.r#72)  ─────
  out$form not equal to list(x = "1").
  target is NULL, current is list
  
  ── 15. 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
  
  ── 16. 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")
  
  ── 17. 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: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), 
         error = function(e) {
             e$call <- cl.i
             stop(e)
         }), warning = function(w) {
         w$call <- cl.i
         w
     })
  5: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), error = function(e) {
         e$call <- cl.i
         stop(e)
     })
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 18. 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
  
  ── 19. Failure: All headers captures headers from redirects (@test-header.r#18) 
  length(r1$all_headers) not equal to 1 + 1.
  1/1 mismatches
  [1] 3 - 2 == 1
  
  ── 20. Failure: All headers captures headers from redirects (@test-header.r#21) 
  length(r3$all_headers) not equal to 3 + 1.
  1/1 mismatches
  [1] 5 - 4 == 1
  
  ── 21. 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:443/headers"
  
  ── 22. Failure: POST posts (@test-response.r#19)  ──────────────────────────────
  POST("http://httpbin.org/post")$status_code not equal to 200.
  1/1 mismatches
  [1] 405 - 200 == 205
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 115 SKIPPED: 2 FAILED: 22
  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. Error: named list matches form results (encode = 'form') (@test-body.r#45) 
  8. Failure: named list matches form results (encode = 'multipart') (@test-body.r#52) 
  9. Failure: named list matches form results (encode = 'multipart') (@test-body.r#53) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted