Running ‘testthat.R’ [10s/13s]
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(ElevDistr)
  > 
  > test_check("ElevDistr")
  [ FAIL 6 | WARN 6 | SKIP 0 | PASS 37 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-calculate_distance.R:5:1'): (code run outside of `test_that()`) ──
  Error: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gstURL, vsi = TRUE) at test-calculate_distance.R:5:1
   2. └─terra::rast(gstURL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@ptr$getError())
  ── Error ('test-classify_above_treeline.R:3:1'): (code run outside of `test_that()`) ──
  Error: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gstURL, vsi = TRUE) at test-classify_above_treeline.R:3:1
   2. └─terra::rast(gstURL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@ptr$getError())
  ── Error ('test-distance_to_treeline.R:3:1'): (code run outside of `test_that()`) ──
  Error: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gstURL, vsi = TRUE) at test-distance_to_treeline.R:3:1
   2. └─terra::rast(gstURL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@ptr$getError())
  ── Error ('test-generate_point_df.R:3:1'): (code run outside of `test_that()`) ──
  Error: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gstURL, vsi = TRUE) at test-generate_point_df.R:3:1
   2. └─terra::rast(gstURL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@ptr$getError())
  ── Error ('test-plot_distr.R:6:1'): (code run outside of `test_that()`) ────────
  Error: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gstURL, vsi = TRUE) at test-plot_distr.R:6:1
   2. └─terra::rast(gstURL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@ptr$getError())
  ── Error ('test-sample_treeline.R:5:1'): (code run outside of `test_that()`) ───
  Error: [rast] file does not exist: /vsicurl/https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/bio/CHELSA_gst_1981-2010_V.2.1.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gstURL, vsi = TRUE) at test-sample_treeline.R:5:1
   2. └─terra::rast(gstURL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@ptr$getError())
  
  [ FAIL 6 | WARN 6 | SKIP 0 | PASS 37 ]
  Error: Test failures
  Execution halted