Running 'testthat.R' [200s]
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: empty list gives empty body (@test-body.r#40)  ------------------
  out$data not equal to "".
  target is NULL, current is character
  
  -- 3. Failure: empty list gives empty body (@test-body.r#43)  ------------------
  out$data not equal to "".
  target is NULL, current is character
  
  -- 4. 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
  
  -- 5. 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
  
  -- 6. Failure: named list matches form results (encode = 'json') (@test-body.r#6
  out$json$a[[1]] not equal to 1.
  target is NULL, current is numeric
  
  -- 7. Failure: named list matches form results (encode = 'json') (@test-body.r#6
  out$json$b[[1]] not equal to 2.
  target is NULL, current is numeric
  
  -- 8. Failure: can do own encoding (@test-body.r#74)  --------------------------
  out$json not equal to list(a = 1, b = 2).
  target is NULL, current is list
  
  -- 9. Failure: NULL elements are automatically dropped (@test-body.r#82)  ------
  out$form not equal to list(x = "1").
  target is NULL, current is list
  
  -- 10. Failure: explicit content type overrides defaults (@test-body.r#103)  ---
  out$headers$`Content-Type` not equal to "application/json".
  target is NULL, current is character
  
  -- 11. Failure: basic authentication works (@test-config.r#9)  -----------------
  r$status_code not equal to 401.
  1/1 mismatches
  [1] 504 - 401 == 103
  
  == testthat results  ===========================================================
  [ OK: 153 | SKIPPED: 4 | WARNINGS: 4 | FAILED: 11 ]
  1. Failure: NULL body gives empty data element (@test-body.r#12) 
  2. Failure: empty list gives empty body (@test-body.r#40) 
  3. Failure: empty list gives empty body (@test-body.r#43) 
  4. Failure: named list matches form results (encode = 'form') (@test-body.r#48) 
  5. Failure: named list matches form results (encode = 'form') (@test-body.r#49) 
  6. Failure: named list matches form results (encode = 'json') (@test-body.r#60) 
  7. Failure: named list matches form results (encode = 'json') (@test-body.r#61) 
  8. Failure: can do own encoding (@test-body.r#74) 
  9. Failure: NULL elements are automatically dropped (@test-body.r#82) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted