Running 'testthat.R' [37s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(terrainr)
  > 
  > test_check("terrainr")
  Starting 2 test processes
  [ FAIL 3 | WARN 21 | SKIP 18 | PASS 22 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (17)
  • On Windows (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-2-get_tiles_3dep.R:67'): specifying SR works ───────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [elevation.nationalmap.gov] Resolving timed out after 10000 milliseconds
  Backtrace:
       ▆
    1. ├─terrainr::get_tiles(dat) at test-2-get_tiles_3dep.R:67:2
    2. └─terrainr:::get_tiles.sf(dat)
    3.   └─terrainr:::get_tiles_internal(...)
    4.     └─terrainr::hit_national_map_api(...)
    5.       └─terrainr (local) get_href()
    6.         └─httr::GET(url, agent, query = c(bbox_arg, query_arg))
    7.           └─httr:::request_perform(req, hu$handle$handle)
    8.             ├─httr:::request_fetch(req$output, req$url, handle)
    9.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-4-merge_rasters.R:110'): overwrite works as expected ───────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: elevation.nationalmap.gov
  Backtrace:
       ▆
    1. ├─terrainr::get_tiles(first_tile) at test-4-merge_rasters.R:110:2
    2. └─terrainr:::get_tiles.sfc(first_tile)
    3.   ├─terrainr::get_tiles(...)
    4.   └─terrainr:::get_tiles.sf(...)
    5.     └─terrainr:::get_tiles_internal(...)
    6.       └─terrainr::hit_national_map_api(...)
    7.         └─terrainr (local) get_href()
    8.           └─httr::GET(url, agent, query = c(bbox_arg, query_arg))
    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-get_tiles.R:5'): SpatRast method is consistent ─────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [elevation.nationalmap.gov] Resolving timed out after 10000 milliseconds
  Backtrace:
       ▆
    1. ├─terrainr::get_tiles(tmp_raster, bboxSR = 4326, imageSR = 4326) at test-get_tiles.R:5:2
    2. └─terrainr:::get_tiles.SpatRaster(tmp_raster, bboxSR = 4326, imageSR = 4326)
    3.   └─terrainr:::get_tiles_internal(...)
    4.     └─terrainr::hit_national_map_api(...)
    5.       └─terrainr (local) get_href()
    6.         └─httr::GET(url, agent, query = c(bbox_arg, query_arg))
    7.           └─httr:::request_perform(req, hu$handle$handle)
    8.             ├─httr:::request_fetch(req$output, req$url, handle)
    9.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.               └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 3 | WARN 21 | SKIP 18 | PASS 22 ]
  Error: Test failures
  Execution halted