Running 'testthat.R' [50s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BIOMASS)
  For more information on using BIOMASS, visit https://umr-amap.github.io/BIOMASS
  
  Using temporary cache
    It is recommended to use a permanent cache to avoid to re-download files on each session.
    See function createCache() or BIOMASS.cache option.
  > 
  > test_check("BIOMASS")
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  pj_obj_create: Cannot find proj.db
  NULL
  pj_obj_create: Cannot find proj.db
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 450 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-AGBmonteCarlo.R:153:3', 'test-check_coord_plot.R:106:3',
    'test-check_coord_plot.R:131:3', 'test-computeAGB.R:43:3',
    'test-correctTaxo.R:5:3', 'test-modelHD.R:120:3', 'test-retrieveH.R:36:3',
    'test-small_function.R:22:3', 'test-subplot_summary.R:36:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-small_function.R:42:3'): getBioclimParam ───────────────────────
  Error in `(function (cond) 
  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "Failed to perform HTTP request.", 
      trace = structure(list(call = list(getBioclimParam(coord), 
          rast(cacheManager("bio4.bil")), cacheManager("bio4.bil"), 
          httr2::req_perform(req), handle_resp(req, resp, error_call = error_call), 
          cnd_signal(resp)), parent = c(0L, 1L, 1L, 3L, 4L, 5L), 
          visible = c(TRUE, TRUE, TRUE, TRUE, FALSE, FALSE), namespace = c("BIOMASS", 
          "terra", "BIOMASS", "httr2", "httr2", "rlang"), scope = c("::", 
          "::", "::", "::", ":::", "::")), row.names = c(NA, -6L
      ), version = 2L, class = c("rlang_trace", "rlib_trace", "tbl", 
      "data.frame")), parent = structure(list(message = "Timeout was reached [github.com]:\nConnection timed out after 10004 milliseconds", 
          call = curl::curl_fetch_memory(url, handle)), class = c("curl_error_operation_timedout", 
      "curl_error", "error", "condition")), call = httr2::req_perform(req), 
      request = structure(list(url = "https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/wc2-5.zip", 
          method = NULL, headers = list(), body = NULL, fields = list(), 
          options = list(), policies = list(error_is_error = function (response) 
          FALSE), state = <environment>), class = "httr2_request")), class = c("httr2_failure", 
  "httr2_error", "rlang_error", "error", "condition")))`: error in evaluating the argument 'x' in selecting a method for function 'rast': Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [github.com]:
  Connection timed out after 10004 milliseconds
  Backtrace:
      ▆
   1. ├─BIOMASS::getBioclimParam(coord) at test-small_function.R:42:3
   2. │ ├─terra::rast(cacheManager("bio4.bil"))
   3. │ └─BIOMASS::cacheManager("bio4.bil")
   4. │   └─httr2::req_perform(req)
   5. │     └─httr2:::handle_resp(req, resp, error_call = error_call)
   6. │       └─rlang::cnd_signal(resp)
   7. │         └─rlang:::signal_abort(cnd)
   8. │           └─base::signalCondition(cnd)
   9. └─base (local) `<fn>`(`<httr2_fl>`)
  ── Error ('test-small_function.R:112:3'): Michaelis function ───────────────────
  Error in `(function (cond) 
  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "Failed to perform HTTP request.", 
      trace = structure(list(call = list(data.frame(H = retrieveH(D, 
          coord = coord)$H, D = D), retrieveH(D, coord = coord), 
          computeE(coord), rast(cacheManager("E.bil")), cacheManager("E.bil"), 
          httr2::req_perform(req), handle_resp(req, resp, error_call = error_call), 
          cnd_signal(resp)), parent = c(0L, 0L, 2L, 3L, 3L, 5L, 
      6L, 7L), visible = c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, 
      FALSE, FALSE), namespace = c("base", "BIOMASS", "BIOMASS", 
      "terra", "BIOMASS", "httr2", "httr2", "rlang"), scope = c("::", 
      "::", "::", "::", "::", "::", ":::", "::")), row.names = c(NA, 
      -8L), version = 2L, class = c("rlang_trace", "rlib_trace", 
      "tbl", "data.frame")), parent = structure(list(message = "Timeout was reached [github.com]:\nConnection timed out after 10014 milliseconds", 
          call = curl::curl_fetch_memory(url, handle)), class = c("curl_error_operation_timedout", 
      "curl_error", "error", "condition")), call = httr2::req_perform(req), 
      request = structure(list(url = "https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip", 
          method = NULL, headers = list(), body = NULL, fields = list(), 
          options = list(), policies = list(error_is_error = function (response) 
          FALSE), state = <environment>), class = "httr2_request")), class = c("httr2_failure", 
  "httr2_error", "rlang_error", "error", "condition")))`: error in evaluating the argument 'x' in selecting a method for function 'rast': Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [github.com]:
  Connection timed out after 10014 milliseconds
  Backtrace:
       ▆
    1. ├─base::data.frame(H = retrieveH(D, coord = coord)$H, D = D) at test-small_function.R:112:3
    2. ├─BIOMASS::retrieveH(D, coord = coord)
    3. │ └─BIOMASS::computeE(coord)
    4. │   ├─terra::rast(cacheManager("E.bil"))
    5. │   └─BIOMASS::cacheManager("E.bil")
    6. │     └─httr2::req_perform(req)
    7. │       └─httr2:::handle_resp(req, resp, error_call = error_call)
    8. │         └─rlang::cnd_signal(resp)
    9. │           └─rlang:::signal_abort(cnd)
   10. │             └─base::signalCondition(cnd)
   11. └─base (local) `<fn>`(`<httr2_fl>`)
  ── Error ('test-small_function.R:123:3'): Weibull function ─────────────────────
  Error in `(function (cond) 
  .Internal(C_tryCatchHelper(addr, 1L, cond)))(structure(list(message = "Failed to perform HTTP request.", 
      trace = structure(list(call = list(data.frame(H = retrieveH(D, 
          coord = coord)$H, D = D), retrieveH(D, coord = coord), 
          computeE(coord), rast(cacheManager("E.bil")), cacheManager("E.bil"), 
          httr2::req_perform(req), handle_resp(req, resp, error_call = error_call), 
          cnd_signal(resp)), parent = c(0L, 0L, 2L, 3L, 3L, 5L, 
      6L, 7L), visible = c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, 
      FALSE, FALSE), namespace = c("base", "BIOMASS", "BIOMASS", 
      "terra", "BIOMASS", "httr2", "httr2", "rlang"), scope = c("::", 
      "::", "::", "::", "::", "::", ":::", "::")), row.names = c(NA, 
      -8L), version = 2L, class = c("rlang_trace", "rlib_trace", 
      "tbl", "data.frame")), parent = structure(list(message = "Timeout was reached [github.com]:\nConnection timed out after 10000 milliseconds", 
          call = curl::curl_fetch_memory(url, handle)), class = c("curl_error_operation_timedout", 
      "curl_error", "error", "condition")), call = httr2::req_perform(req), 
      request = structure(list(url = "https://github.com/umr-amap/BIOMASS/raw/master/data-raw/climate_variable/E.zip", 
          method = NULL, headers = list(), body = NULL, fields = list(), 
          options = list(), policies = list(error_is_error = function (response) 
          FALSE), state = <environment>), class = "httr2_request")), class = c("httr2_failure", 
  "httr2_error", "rlang_error", "error", "condition")))`: error in evaluating the argument 'x' in selecting a method for function 'rast': Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! Timeout was reached [github.com]:
  Connection timed out after 10000 milliseconds
  Backtrace:
       ▆
    1. ├─base::data.frame(H = retrieveH(D, coord = coord)$H, D = D) at test-small_function.R:123:3
    2. ├─BIOMASS::retrieveH(D, coord = coord)
    3. │ └─BIOMASS::computeE(coord)
    4. │   ├─terra::rast(cacheManager("E.bil"))
    5. │   └─BIOMASS::cacheManager("E.bil")
    6. │     └─httr2::req_perform(req)
    7. │       └─httr2:::handle_resp(req, resp, error_call = error_call)
    8. │         └─rlang::cnd_signal(resp)
    9. │           └─rlang:::signal_abort(cnd)
   10. │             └─base::signalCondition(cnd)
   11. └─base (local) `<fn>`(`<httr2_fl>`)
  
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 450 ]
  Deleting unused snapshots:
  • check_coord_plot/check-plot-201-rast-prop.svg
  • check_coord_plot/check-plot-201-trust-f.svg
  • check_coord_plot/check-plot-204.svg
  • subplot_summary/subplot-summary-multiple-metrics-204.svg
  • subplot_summary/subplot-summary-multiple-plot-201.svg
  • subplot_summary/subplot-summary-multiple-plot-204.svg
  • subplot_summary/subplot-summary-proj-coords.svg
  • subplot_summary/subplot-summary-quantile.svg
  Error: Test failures
  Execution halted