Running ‘testthat.R’ [8s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > 
  > library(testthat)
  > library(odns)
  > 
  > test_check("odns")
  [ FAIL 9 | WARN 0 | SKIP 25 | PASS 21 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (25)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_data.R:24'): correct result returned using dummy httr::RETRY result ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-get_data.R:24:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─digest::digest(...)
   5. │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   6. └─odns::get_data(...)
   7.   └─odns::resource_data_items(resource)
   8.     └─httr::RETRY(...)
  ── Error ('test-get_data.R:57'): correct result returned using dummy httr::RETRY result ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-get_data.R:57:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─digest::digest(...)
   5. │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   6. └─odns::get_data(...)
   7.   └─odns::resource_data_items(resource)
   8.     └─httr::RETRY(...)
  ── Error ('test-get_data.R:75'): correct result returned using dummy httr::RETRY result ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-get_data.R:75:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─digest::digest(...)
   5. │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   6. └─odns::get_data(...)
   7.   └─odns::resource_data_items(resource)
   8.     └─httr::RETRY(...)
  ── Error ('test-get_resource.R:44'): one resource is returned using ids ────────
  Error in `curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-get_resource.R:44:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─digest::digest(...)
   5. │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   6. └─odns::get_resource(...)
   7.   └─base::lapply(...)
   8.     └─data.table (local) FUN(X[[i]], ...)
   9.       └─curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)
  ── Error ('test-get_resource.R:59'): one resource is returned using names ──────
  Error in `curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-get_resource.R:59:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─digest::digest(...)
   5. │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   6. └─odns::get_resource(...)
   7.   └─base::lapply(...)
   8.     └─data.table (local) FUN(X[[i]], ...)
   9.       └─curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)
  ── Error ('test-get_resource.R:75'): correct return with one not found package name and message raised ──
  Error in `curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)`: Recv failure: Connection reset by peer
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-get_resource.R:75:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(...) at test-get_resource.R:76:2
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─odns::get_resource(...)
   10.   └─base::lapply(...)
   11.     └─data.table (local) FUN(X[[i]], ...)
   12.       └─curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)
  ── Error ('test-get_resource.R:99'): correct return with one not found resource name and message raised ──
  Error in `curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)`: Recv failure: Connection reset by peer
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-get_resource.R:99:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(...) at test-get_resource.R:100:2
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─odns::get_resource(...)
   10.   └─base::lapply(...)
   11.     └─data.table (local) FUN(X[[i]], ...)
   12.       └─curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)
  ── Error ('test-get_resource.R:124'): correct return with one not found resource name and message 
                      raised, specifically testing valid resource name but not
                      within the package specified ──
  Error in `curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)`: Recv failure: Connection reset by peer
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-get_resource.R:124:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_message(...) at test-get_resource.R:125:2
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─odns::get_resource(...)
   10.   └─base::lapply(...)
   11.     └─data.table (local) FUN(X[[i]], ...)
   12.       └─curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)
  ── Error ('test-get_resource.R:147'): specifying only a resource works ─────────
  Error in `curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)`: Recv failure: Connection reset by peer
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-get_resource.R:147:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─digest::digest(...)
   5. │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   6. └─odns::get_resource(...)
   7.   └─base::lapply(...)
   8.     └─data.table (local) FUN(X[[i]], ...)
   9.       └─curl::curl_download(input, tmpFile, mode = "wb", quiet = !showProgress)
  
  [ FAIL 9 | WARN 0 | SKIP 25 | PASS 21 ]
  Error: Test failures
  Execution halted