Running ‘testthat.R’ [23s/273s]
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 2 | WARN 2 | SKIP 0 | PASS 109 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-calculate_distance.R:9:1'): (code run outside of `test_that()`) ──
  Error: [rast] file does not exist: /vsicurl/https://edcintl.cr.usgs.gov/downloads/sciweb1/shared/topo/downloads/GMTED/Global_tiles_GMTED/300darcsec/med/E000/30N000E_20101117_gmted_med300.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gmted2010URL, vsi = TRUE) at test-calculate_distance.R:9:1
   2. └─terra::rast(gmted2010URL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@pntr$getError())
  ── Error ('test-distance_to_treeline.R:7:1'): (code run outside of `test_that()`) ──
  Error: [rast] file does not exist: /vsicurl/https://edcintl.cr.usgs.gov/downloads/sciweb1/shared/topo/downloads/GMTED/Global_tiles_GMTED/300darcsec/med/E000/30N000E_20101117_gmted_med300.tif
  Backtrace:
      ▆
   1. ├─terra::rast(gmted2010URL, vsi = TRUE) at test-distance_to_treeline.R:7:1
   2. └─terra::rast(gmted2010URL, vsi = TRUE)
   3.   └─terra (local) .local(x, ...)
   4.     └─terra:::messages(r, "rast")
   5.       └─terra:::error(f, x@pntr$getError())
  
  [ FAIL 2 | WARN 2 | SKIP 0 | PASS 109 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘ElevDistr.Rmd’ using rmarkdown

Quitting from ElevDistr.Rmd:150-172 [unnamed-chunk-15]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! [rast] file does not exist: /vsicurl/https://edcintl.cr.usgs.gov/downloads/sciweb1/shared/topo/downloads/GMTED/Global_tiles_GMTED/300darcsec/med/E000/50N000E_20101117_gmted_med300.tif
---
Backtrace:
    ▆
 1. ├─terra::rast(gmted2010URL2, vsi = TRUE)
 2. └─terra::rast(gmted2010URL2, vsi = TRUE)
 3.   └─terra (local) .local(x, ...)
 4.     └─terra:::messages(r, "rast")
 5.       └─terra:::error(f, x@pntr$getError())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'ElevDistr.Rmd' failed with diagnostics:
[rast] file does not exist: /vsicurl/https://edcintl.cr.usgs.gov/downloads/sciweb1/shared/topo/downloads/GMTED/Global_tiles_GMTED/300darcsec/med/E000/50N000E_20101117_gmted_med300.tif
--- failed re-building ‘ElevDistr.Rmd’

SUMMARY: processing the following file failed:
  ‘ElevDistr.Rmd’

Error: Vignette re-building failed.
Execution halted
Error(s) in re-building vignettes:
--- re-building 'ElevDistr.Rmd' using rmarkdown

Quitting from ElevDistr.Rmd:103-107 [unnamed-chunk-10]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! 500 - Server error
---
Backtrace:
    ▆
 1. └─rgbif::occ_data(...)
 2.   └─base::lapply(...)
 3.     └─rgbif (local) FUN(X[[i]], ...)
 4.       └─rgbif:::gbif_GET(url, args, TRUE, curlopts)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'ElevDistr.Rmd' failed with diagnostics:
500 - Server error
--- failed re-building 'ElevDistr.Rmd'

SUMMARY: processing the following file failed:
  'ElevDistr.Rmd'

Error: Vignette re-building failed.
Execution halted