Running ‘stub.R’ [0s/0s]
  Running ‘testthat.R’ [7s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(osmdata)
  Data (c) OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright
  > 
  > test_check("osmdata")
  ── 1. Error: make_query (@test-osmdata.R#93)  ──────────────────────────────────
  no applicable method for 'http_error' applied to an object of class "c('simpleError', 'error', 'condition')"
  1: osmdata_sp(qry) at testthat/test-osmdata.R:93
  2: fill_overpass_data(obj, doc, quiet = quiet)
  3: overpass_query(query = obj$overpass_call, quiet = quiet, encoding = encoding)
  4: overpass_status(quiet)
  5: httr::RETRY("GET", status_url, timeout = 100, times = 10)
  6: retry_should_terminate(i, times, resp, terminate_on, terminate_on_success)
  7: http_error(resp)
  
  ── 2. Error: query-no-quiet (@test-osmdata.R#146)  ─────────────────────────────
  no applicable method for 'http_error' applied to an object of class "c('simpleError', 'error', 'condition')"
  1: expect_message(x <- osmdata_sp(qry, quiet = FALSE), "converting OSM data to sp format") at testthat/test-osmdata.R:146
  2: quasi_capture(enquo(object), label, capture_messages)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(.quo), get_env(.quo))
  6: osmdata_sp(qry, quiet = FALSE)
  7: fill_overpass_data(obj, doc, quiet = quiet)
  8: overpass_query(query = obj$overpass_call, quiet = quiet, encoding = encoding)
  9: overpass_status(quiet)
  10: httr::RETRY("GET", status_url, timeout = 100, times = 10)
  11: retry_should_terminate(i, times, resp, terminate_on, terminate_on_success)
  12: http_error(resp)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 149 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: make_query (@test-osmdata.R#93) 
  2. Error: query-no-quiet (@test-osmdata.R#146) 
  
  Error: testthat unit tests failed
  Execution halted