Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(webTRISr)
  > 
  > testthat::test_check('webTRISr')
  [ FAIL 15 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_WTareas.R:5:5): WTares() returns dataframe ──────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_areas() at test_WTareas.R:5:4
    2.   ├─webTRISr:::parse_json(api(path = target_api))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = target_api)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_WTareas.R:16:5): WTares(3) returns dataframe ────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_areas(3) at test_WTareas.R:16:4
    2.   ├─webTRISr:::parse_json(api(path = target_api))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = target_api)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_WTquality.R:5:5): webtris_quality() returns dataframe ───────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_quality(...) at test_WTquality.R:5:4
    2.   ├─webTRISr:::parse_json(api(path = path, query = query))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = path, query = query)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_WTquality.R:14:5): webtris_quality(daily=FALSE) returns dataframe ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_quality(...) at test_WTquality.R:14:4
    2.   ├─webTRISr:::parse_json(api(path = manual_path))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = manual_path)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_WTquality.R:26:3): webtris_quality(daily=FALSE) returns value 100 ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_quality(...) at test_WTquality.R:26:2
    2.   ├─webTRISr:::parse_json(api(path = manual_path))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = manual_path)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_WTsites.R:5:5): webtris_sites() returns dataframe ───────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_sites() at test_WTsites.R:5:4
    2.   ├─webTRISr:::parse_json(api(path = target_api))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = target_api)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_WTsites.R:20:5): webtris_quality(daily=FALSE) returns dataframe ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
       ▆
    1. └─webTRISr::webtris_sites(1) at test_WTsites.R:20:4
    2.   ├─webTRISr:::parse_json(api(path = target_api))
    3.   │ ├─jsonlite::fromJSON(txt = httr::content(httrresp, "text"), simplifyVector = TRUE)
    4.   │ └─httr::content(httrresp, "text")
    5.   │   ├─base::stopifnot(is.response(x))
    6.   │   └─httr:::is.response(x)
    7.   └─webTRISr:::api(path = target_api)
    8.     └─httr::GET(api_url)
    9.       └─httr:::request_perform(req, hu$handle$handle)
   10.         ├─httr:::request_fetch(req$output, req$url, handle)
   11.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:5:5): Daily report works ──────────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:5:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:22:5): This report should have 576 rows ───────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:22:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:29:5): Report annual-totals works ─────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:29:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:38:5): Report annual-monthly works ────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:38:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:46:5): Report monthly-summary works ───────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:46:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:54:5): Report monthly-daily works ─────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:54:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:62:5): Report monthly-daily-aggregate works ───────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:62:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test_reports.R:70:5): Report monthly-hourly-aggregate works ──────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: webtris.highwaysengland.co.uk
  Backtrace:
      ▆
   1. └─webTRISr::webtris_report(...) at test_reports.R:70:4
   2.   └─webTRISr:::reportFetch(...)
   3.     └─webTRISr:::reportAPI(...)
   4.       └─webTRISr:::api(verbose, path = api_target, query = varlist)
   5.         └─httr::GET(api_url)
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 15 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted