Running 'testthat.R' [8s/57s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > test_check("httr")
  Loading required package: httr
  -- 1. Error: NULL body gives empty data element (@test-body.r#12)  -------------
  $ operator is invalid for atomic vectors
  1: expect_equal(out$data, "") at testthat/test-body.r:12
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  -- 2. Error: FALSE body doesn't send body (@test-body.r#17)  -------------------
  $ operator is invalid for atomic vectors
  1: expect_equal(out$data, NULL) at testthat/test-body.r:17
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  -- 3. Error: string/raw in body gives same string in data element (@test-body.r#
  $ operator is invalid for atomic vectors
  1: expect_equal(out$data, "test") at testthat/test-body.r:25
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  -- 4. Error: empty list gives empty body (@test-body.r#40)  --------------------
  $ operator is invalid for atomic vectors
  1: expect_equal(out$data, "") at testthat/test-body.r:40
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  -- 5. Error: named list matches form results (encode = 'form') (@test-body.r#48)
  $ operator is invalid for atomic vectors
  1: expect_equal(out$form$a, "1") at testthat/test-body.r:48
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  -- 6. Error: named list matches form results (encode = 'json') (@test-body.r#60)
  $ operator is invalid for atomic vectors
  1: expect_equal(out$json$a[[1]], 1) at testthat/test-body.r:60
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  -- 7. Error: decimal precision is preserved (encode = 'json') (@test-body.r#69) 
  $ operator is invalid for atomic vectors
  1: expect_equal(out$data, "{\"a\":0.867530986753099}") at testthat/test-body.r:69
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  
  == testthat results  ===========================================================
  OK: 147 SKIPPED: 2 FAILED: 7
  1. Error: NULL body gives empty data element (@test-body.r#12) 
  2. Error: FALSE body doesn't send body (@test-body.r#17) 
  3. Error: string/raw in body gives same string in data element (@test-body.r#25) 
  4. Error: empty list gives empty body (@test-body.r#40) 
  5. Error: named list matches form results (encode = 'form') (@test-body.r#48) 
  6. Error: named list matches form results (encode = 'json') (@test-body.r#60) 
  7. Error: decimal precision is preserved (encode = 'json') (@test-body.r#69) 
  
  Error: testthat unit tests failed
  Execution halted