Running 'testthat.R' [43s]
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.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(geohabnet)
  > 
  > test_check("geohabnet")
  trying URL 'https://s3.us-east-2.amazonaws.com/earthstatdata/HarvestedAreaYield175Crops_Indvidual_Geotiff/avocado_HarvAreaYield_Geotiff.zip'
  trying URL 'https://s3.us-east-2.amazonaws.com/earthstatdata/HarvestedAreaYield175Crops_Indvidual_Geotiff/avocado_HarvAreaYield_Geotiff.zip'
  trying URL 'https://geohabnet.s3.us-east-2.amazonaws.com/util-rasters/avocado_HarvestedAreaFraction.tif'
  trying URL 'https://geohabnet.s3.us-east-2.amazonaws.com/util-rasters/ZeroRaster.tif'
  [ FAIL 4 | WARN 1 | SKIP 0 | PASS 16 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-functional.R:3:3'): System test - Test function to retreive crop raster data ──
  Expected `geohabnet::cropharvest_rast("avocado", "monfreda")` to run without any conditions.
  ℹ Actually got a <simpleMessage> with text:
    download failed
    
  ── Error ('test-functional.R:7:3'): System test - Test Senstivity analysis run on default configuration ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'app': error in evaluating the argument 'x' in selecting a method for function 'deepcopy': subscript out of bounds
  Backtrace:
       ▆
    1. ├─testthat::expect_no_condition(...) at test-functional.R:7:3
    2. │ └─testthat:::expect_no_(...)
    3. │   └─testthat:::quasi_capture(enquo(object), NULL, capture)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─rlang::try_fetch(...)
    6. │     │   └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─geohabnet::sensitivity_analysis()
    9. │ └─geohabnet::connectivity(...)
   10. │   └─geohabnet::ccri_mean(indexes, global, geoscale, pmean, outdir)
   11. │     └─geohabnet (local) .cal_mean(indexes[[STR_EAST]])
   12. │       ├─terra::app(terra::rast(ext_indices), sum, na.rm = TRUE)
   13. │       ├─terra::rast(ext_indices)
   14. │       └─terra::rast(ext_indices)
   15. │         └─terra (local) .local(x, ...)
   16. │           └─terra::deepcopy(x[[1]])
   17. ├─base (local) `<fn>`(`<sbscOOBE>`)
   18. └─base::.handleSimpleError(...)
   19.   └─base (local) h(simpleError(msg, call))
  ── Failure ('test-get_rasters.R:2:3'): get rasters with valid tif ──────────────
  Expected `get_rasters(list(file = c(.get_helper_filepath("avocado"))))` to run without any conditions.
  ℹ Actually got a <simpleWarning> with text:
    URL 'https://geohabnet.s3.us-east-2.amazonaws.com/util-rasters/avocado_HarvestedAreaFraction.tif': status was 'Couldn't resolve host name'
  ── Error ('test-utilities.R:5:3'): get helper files ────────────────────────────
  Error in `utils::download.file(uri, destfile = f, method = "auto", mode = "wb")`: cannot open URL 'https://geohabnet.s3.us-east-2.amazonaws.com/util-rasters/ZeroRaster.tif'
  Backtrace:
       ▆
    1. ├─testthat::expect_true(file.exists(.get_helper_filepath(.kzeroraster_file_type))) at test-utilities.R:5:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::file.exists(.get_helper_filepath(.kzeroraster_file_type))
    5. └─geohabnet:::.get_helper_filepath(.kzeroraster_file_type)
    6.   ├─geohabnet:::.utilrast(file_type)
    7.   │ ├─base::withVisible(eval(mc, parent.frame()))
    8.   │ └─base::eval(mc, parent.frame())
    9.   │   └─base::eval(mc, parent.frame())
   10.   └─geohabnet (local) `<fn>`(typ = file_type)
   11.     └─geohabnet:::.download(.utilrast_uri(typ))
   12.       ├─base::stopifnot(...)
   13.       └─utils::download.file(uri, destfile = f, method = "auto", mode = "wb")
  
  [ FAIL 4 | WARN 1 | SKIP 0 | PASS 16 ]
  Error: Test failures
  Execution halted