Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("httptest")
  Loading required package: httptest
  1. Error: We can record a series of requests (@test-capture-requests.R#26) -----
  /tmp/RtmpqoaqzS/file120e743cd3f5/httpbin.org/status/418.R:34:65: unexpected '='
  33:     total = 0.103643), request = structure(list(method = "GET", 
  34:         url = "http://httpbin.org/status/418", headers = Accept =
                                                                      ^
  1: source(file.path(d, "httpbin.org/status/418.R")) at testthat/test-capture-requests.R:26
  
  2. Error: We can then load the mocks it stores (@test-capture-requests.R#40) ---
  /tmp/RtmpqoaqzS/file120e743cd3f5/httpbin.org.R:22:54: unexpected '='
  21:     total = 4295.082715), request = structure(list(method = "GET", 
  22:         url = "http://httpbin.org", headers = Accept =
                                                           ^
  1: with_mock_API({
         m1 <- GET("http://httpbin.org/get")
         m2 <- GET("http://httpbin.org")
         m3 <- GET("http://httpbin.org/status/418")
         m4 <- PUT("http://httpbin.org/put")
         m5 <- GET("http://httpbin.org/response-headers", query = list(`Content-Type` = "application/json"))
     }) at testthat/test-capture-requests.R:40
  2: with_mock(`httr:::request_perform` = mockRequest, `utils::download.file` = mockDownload, 
         eval.parent(expr))
  3: eval(expression, parent.frame())
  4: eval(expression, parent.frame())
  5: eval.parent(expr)
  6: eval(expr, p)
  7: GET("http://httpbin.org") at testthat/test-capture-requests.R:42
  8: request_perform(req, hu$handle$handle)
  9: source(mockfile)
  
  testthat results ================================================================
  OK: 145 SKIPPED: 2 FAILED: 2
  1. Error: We can record a series of requests (@test-capture-requests.R#26) 
  2. Error: We can then load the mocks it stores (@test-capture-requests.R#40) 
  
  Error: testthat unit tests failed
  Execution halted