Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(OCSdata)
  > 
  > test_check("OCSdata")
  v Downloading from 'https://github.com/opencasestudies/ocs-bp-co2-emissions/zipball/HEAD'
  i Retrying download ... attempt 2
  i Retrying download ... attempt 3
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-extra_data.R:4:3): extra_data works ─────────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-extra_data.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::extra_data("ocs-bp-opioid-rural-urban", outpath = tmp)
   5.   └─httr::GET(url = repo_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-imported_data.R:4:3): imported_data works ───────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-imported_data.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::imported_data("ocs-bp-opioid-rural-urban", outpath = tmp)
   5.   └─httr::GET(url = repo_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-raw_data.R:4:3): raw_data works ─────────────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-raw_data.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::raw_data("ocs-bp-opioid-rural-urban", outpath = tmp)
   5.   └─httr::GET(url = repo_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-simpler_import_data.R:4:3): simpler_import_data works ───────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-simpler_import_data.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::simpler_import_data("ocs-bp-opioid-rural-urban", outpath = tmp)
   5.   └─httr::GET(url = repo_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-wrangled_csv.R:4:3): wrangled_csv works ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-wrangled_csv.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::wrangled_csv("ocs-bp-opioid-rural-urban", outpath = tmp)
   5.   └─httr::GET(url = repo_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-wrangled_rda.R:4:3): wrangled_rda works ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-wrangled_rda.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::wrangled_rda("ocs-bp-opioid-rural-urban", outpath = tmp)
   5.   └─httr::GET(url = repo_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-zip_ocs.R:4:3): zip_ocs works ───────────────────────────────────
  Error in `curl::curl_download(url = url, destfile = destfile, quiet = quiet, 
      mode = mode, handle = handle)`: Could not resolve host: github.com
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-zip_ocs.R:4:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─OCSdata::zip_ocs("ocs-bp-co2-emissions", outpath = tmp)
   5.   └─usethis::use_zip(...)
   6.     └─usethis:::tidy_download(url, destdir)
   7.       └─usethis:::download_url(url, destfile = tmp)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted