Package check result: OK Changes to worse in reverse depends: Package: mapme.biodiversity Check: tests New result: ERROR Running ‘testthat.R’ [32s/152s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(mapme.biodiversity) > > options(pillar.advice = FALSE) > mapme_options(verbose = FALSE) > test_check("mapme.biodiversity") Attaching package: 'purrr' The following object is masked from 'package:testthat': is_null Resource 'gsw_time_series' is already available. Resource 'gfw_treecover' is already available. Resource 'gfw_lossyear' is already available. Resource 'key_biodiversity_areas' is already available. [ FAIL 9 | WARN 0 | SKIP 38 | PASS 502 ] ══ Skipped tests (38) ══════════════════════════════════════════════════════════ • On CRAN (37): 'test-calc_burned_area.R:2:3', 'test-calc_elevation.R:39:3', 'test-calc_landcover.R:2:3', 'test-calc_population_count.R:34:3', 'test-calc_precipitation_chelsa.R:36:3', 'test-calc_precipitation_chirps.R:2:3', 'test-calc_precipitation_wc.R:35:3', 'test-calc_slope.R:51:3', 'test-calc_soilproperties.R:2:3', 'test-calc_temperature_max_wc.R:37:3', 'test-calc_temperature_min_wc.R:37:3', 'test-calc_traveltime.R:38:3', 'test-calc_traveltime_2000.R:35:3', 'test-calc_treecover_area.R:97:3', 'test-calc_treecover_area_and_emissions.R:30:3', 'test-calc_treecoverloss_emissions.R:27:3', 'test-calc_tri.R:33:3', 'test-get_carbon.R:28:3', 'test-get_chirps.R:2:3', 'test-get_esalandcover.R:2:3', 'test-get_fritz_et_al.R:2:3', 'test-get_gfw_emissions.R:2:3', 'test-get_gfw_lossyear.R:2:3', 'test-get_gfw_treecover.R:7:3', 'test-get_gmw.R:2:3', 'test-get_gsw.R:2:3', 'test-get_hfp.R:10:3', 'test-get_mcd64A1.R:2:3', 'test-get_nasa_grace.R:2:3', 'test-get_nasa_srtm.R:2:3', 'test-get_nelson_et_al.R:2:3', 'test-get_resources.R:2:3', 'test-get_soilgrids.R:2:3', 'test-get_teow.R:2:3', 'test-get_ucdp_ged.R:3:3', 'test-get_worldpop.R:2:3', 'test-ipbes.R:2:3' • Skipping (1): 'test-calc_indicator.R:259:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-calc_biodiversity_intactness_index.R:11:3'): biodiversity intactness index works ── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_biodiversity_intactness_index(lbii)) at test-calc_biodiversity_intactness_index.R:11:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_biome.R:11:3'): biome computation works ─────────────────── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10001 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_teow()) at test-calc_biome.R:11:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_carbon.R:10:3'): calc_irr_carbon works ──────────────────── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_irr_carbon()) at test-calc_carbon.R:10:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_carbon.R:43:3'): calc_vul_carbon works ──────────────────── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_vul_carbon()) at test-calc_carbon.R:43:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_carbon.R:75:3'): calc_man_carbon works ──────────────────── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10001 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_man_carbon()) at test-calc_carbon.R:75:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_deforestation_drivers.R:11:3'): deforestation drivers works ── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. ├─base::suppressWarnings(get_resources(x, get_fritz_et_al(resolution = 100))) at test-calc_deforestation_drivers.R:11:3 2. │ └─base::withCallingHandlers(...) 3. └─mapme.biodiversity::get_resources(x, get_fritz_et_al(resolution = 100)) 4. └─mapme.biodiversity:::.has_internet() 5. └─httr2::req_perform(httr2::request("www.google.com")) 6. └─base::tryCatch(...) 7. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 8. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 9. └─value[[3L]](cond) ── Error ('test-calc_drought_indicator.R:12:3'): drought indicator works ─────── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_nasa_grace(years = 2022)) at test-calc_drought_indicator.R:12:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_ecoregion.R:12:3'): ecoregion computation works ─────────── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(x, get_teow()) at test-calc_ecoregion.R:12:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) ── Error ('test-calc_fatalities_acled.R:12:3'): calc_fatalitites_acled works ─── Error in `httr2::req_perform(httr2::request("www.google.com"))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [www.google.com]: Connection timed out after 10002 milliseconds Backtrace: ▆ 1. └─mapme.biodiversity::get_resources(...) at test-calc_fatalities_acled.R:12:3 2. └─mapme.biodiversity:::.has_internet() 3. └─httr2::req_perform(httr2::request("www.google.com")) 4. └─base::tryCatch(...) 5. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 6. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7. └─value[[3L]](cond) [ FAIL 9 | WARN 0 | SKIP 38 | PASS 502 ] Error: Test failures Execution halted