Running 'testthat.R' [128s]
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 ───────────────────────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached [github.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-extra_data.R:4:3
    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(githuburl, write_disk(file.path(outpath, fname)))
    6. │   └─httr:::request_perform(req, hu$handle$handle)
    7. │     ├─httr:::request_fetch(req$output, req$url, handle)
    8. │     └─httr:::request_fetch.write_disk(req$output, req$url, handle)
    9. │       └─curl::curl_fetch_disk(url, x$path, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-imported_data.R:4:3'): imported_data works ─────────────────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached [github.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-imported_data.R:4:3
    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(githuburl, write_disk(file.path(outpath, fname)))
    6. │   └─httr:::request_perform(req, hu$handle$handle)
    7. │     ├─httr:::request_fetch(req$output, req$url, handle)
    8. │     └─httr:::request_fetch.write_disk(req$output, req$url, handle)
    9. │       └─curl::curl_fetch_disk(url, x$path, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-raw_data.R:4:3'): raw_data works ───────────────────────────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached [raw.githubusercontent.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-raw_data.R:4:3
    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(githuburl, write_disk(file.path(outpath, fname)))
    6. │   └─httr:::request_perform(req, hu$handle$handle)
    7. │     ├─httr:::request_fetch(req$output, req$url, handle)
    8. │     └─httr:::request_fetch.write_disk(req$output, req$url, handle)
    9. │       └─curl::curl_fetch_disk(url, x$path, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-simpler_import_data.R:4:3'): simpler_import_data works ─────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached [raw.githubusercontent.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-simpler_import_data.R:4:3
    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(githuburl, write_disk(file.path(outpath, fname)))
    6. │   └─httr:::request_perform(req, hu$handle$handle)
    7. │     ├─httr:::request_fetch(req$output, req$url, handle)
    8. │     └─httr:::request_fetch.write_disk(req$output, req$url, handle)
    9. │       └─curl::curl_fetch_disk(url, x$path, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-wrangled_csv.R:4:3'): wrangled_csv works ───────────────────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached [raw.githubusercontent.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-wrangled_csv.R:4:3
    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(githuburl, write_disk(file.path(outpath, fname)))
    6. │   └─httr:::request_perform(req, hu$handle$handle)
    7. │     ├─httr:::request_fetch(req$output, req$url, handle)
    8. │     └─httr:::request_fetch.write_disk(req$output, req$url, handle)
    9. │       └─curl::curl_fetch_disk(url, x$path, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-wrangled_rda.R:4:3'): wrangled_rda works ───────────────────────
  <curl_error_operation_timedout/curl_error/error/condition>
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Timeout was reached [raw.githubusercontent.com]: SSL/TLS connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-wrangled_rda.R:4:3
    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(githuburl, write_disk(file.path(outpath, fname)))
    6. │   └─httr:::request_perform(req, hu$handle$handle)
    7. │     ├─httr:::request_fetch(req$output, req$url, handle)
    8. │     └─httr:::request_fetch.write_disk(req$output, req$url, handle)
    9. │       └─curl::curl_fetch_disk(url, x$path, handle = handle)
   10. └─curl:::raise_libcurl_error(...)
  ── Error ('test-zip_ocs.R:4:3'): zip_ocs works ─────────────────────────────────
  <curl_error_ssl_connect_error/curl_error/error/condition>
  Error in `curl::curl_download(url = url, destfile = destfile, quiet = quiet, 
      mode = mode, handle = handle)`: SSL connect error [github.com]: schannel: failed to receive handshake, SSL/TLS connection failed
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-zip_ocs.R:4:3
   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