R Under development (unstable) (2025-06-25 r88360 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(rcrisp) > > test_check("rcrisp") Ran 1/1 deferred expressions Cache files successfully removed. Cache files successfully removed. Linking to GEOS 3.13.1, GDAL 3.11.0, PROJ 9.6.0; sf_use_s2() is TRUE Calculating viewpoints from both river edge and river centerline. Multiple boundaries were found. Returning all. Multiple boundaries were found. Using the first one. Calculating viewpoints from both river edge and river centerline. [ FAIL 2 | WARN 4 | SKIP 0 | PASS 166 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-valley.R:33:3'): load_dem correctly retrieve and merge remote data ── Error: [rast] file does not exist: /vsis3/copernicus-dem-30m/Copernicus_DSM_COG_10_N44_00_E026_00_DEM/Copernicus_DSM_COG_10_N44_00_E026_00_DEM.tif Backtrace: ▆ 1. └─rcrisp::load_dem(bb, asset_urls, force_download = TRUE) at test-valley.R:33:3 2. └─rcrisp:::load_raster(tile_urls, bbox = bbox) 3. └─base::lapply(urlpaths, terra::rast) 4. ├─terra (local) FUN(X[[i]], ...) 5. └─terra (local) FUN(X[[i]], ...) 6. └─terra (local) .local(x, ...) 7. └─terra:::messages(r, "rast") 8. └─terra:::error(f, x@pntr$getError()) ── Error ('test-valley.R:48:3'): Download DEM data can be retrieved from the cache on new calls ── Error: [rast] file does not exist: /vsis3/copernicus-dem-30m/Copernicus_DSM_COG_10_N44_00_E026_00_DEM/Copernicus_DSM_COG_10_N44_00_E026_00_DEM.tif Backtrace: ▆ 1. ├─testthat::expect_message(...) at test-valley.R:48:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rcrisp::load_dem(bb, asset_urls, force_download = TRUE) 8. └─rcrisp:::load_raster(tile_urls, bbox = bbox) 9. └─base::lapply(urlpaths, terra::rast) 10. ├─terra (local) FUN(X[[i]], ...) 11. └─terra (local) FUN(X[[i]], ...) 12. └─terra (local) .local(x, ...) 13. └─terra:::messages(r, "rast") 14. └─terra:::error(f, x@pntr$getError()) [ FAIL 2 | WARN 4 | SKIP 0 | PASS 166 ] Error: Test failures Execution halted