Running ‘testthat.R’ [30s/126s]
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(ebvcube)
  ebvcube 0.5.2
  > 
  > test_check("ebvcube")
  Warning: stack imbalance in '<-', 77 then 79
  Warning: stack imbalance in '{', 73 then 75
  Saving _problems/test-download-12.R
  Saving _problems/test-download-20.R
  Saving _problems/test-download-28.R
  [ FAIL 3 | WARN 10 | SKIP 0 | PASS 237 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-download.R:12:5'): test ebv_download ID=numeric ────────────────
  <curl_error_http_returned_error/curl_error/error/condition>
  Error in `curl::curl_download(nc_url, destfile = file.path(outputdir, name_nc), quiet = !verbose)`: HTTP response code said error [portal.geobon.org]:
  The requested URL returned error: 502
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_download(27, dir, verbose = FALSE) at test-download.R:12:5
   2. │ └─curl::curl_download(...)
   3. └─curl:::raise_libcurl_error(...)
  ── Error ('test-download.R:20:5'): test ebv_download ID=doi ────────────────────
  <curl_error_http_returned_error/curl_error/error/condition>
  Error in `curl::curl_download(nc_url, destfile = file.path(outputdir, name_nc), quiet = !verbose)`: HTTP response code said error [portal.geobon.org]:
  The requested URL returned error: 502
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_download("10.25829/f2rdp4", dir, verbose = FALSE) at test-download.R:20:5
   2. │ └─curl::curl_download(...)
   3. └─curl:::raise_libcurl_error(...)
  ── Error ('test-download.R:28:5'): test ebv_download ID=title 1 ────────────────
  <curl_error_http_returned_error/curl_error/error/condition>
  Error in `curl::curl_download(nc_url, destfile = file.path(outputdir, name_nc), quiet = !verbose)`: HTTP response code said error [portal.geobon.org]:
  The requested URL returned error: 502
  Backtrace:
      ▆
   1. ├─ebvcube::ebv_download(...) at test-download.R:28:5
   2. │ └─curl::curl_download(...)
   3. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 3 | WARN 10 | SKIP 0 | PASS 237 ]
  Error:
  ! Test failures.
  Execution halted