Running ‘testthat.R’ [144s/459s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(EcoCleanR)
  > 
  > test_check("EcoCleanR")
  ==  1 queries  ===============
  
  Retrieving data for taxon 'Mexacanthina lugubris'
  
  ✔  Found:  Mexacanthina lugubris
  ==  Results  =================
  
  • Total: 1 
  • Found: 1 
  • Not Found: 0
  Suggested threshold at 96th percentile: 8801832
  Extracting BO_sstmean...
  Imputation iteration 1
  Imputation iteration 2
  No more missing values to impute.
  The geodata server is temporary out of service for maintenance. It should be back on 20 December. 
  Saving _problems/test-data_cleaning-294.R
  The geodata server is temporary out of service for maintenance. It should be back on 20 December. 
  Saving _problems/test-data_cleaning-329.R
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 30 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • Skipping ec_flag_non_east_atlantic test - big shape files required to load
    for it (1): 'test-data_cleaning.R:417:3'
  • Skipping ec_flag_non_west_atlantic test - big shape files required to load
    for it (1): 'test-data_cleaning.R:438:3'
  • Skipping ec_flag_non_west_pacific test - big shape files required to load for
    it (1): 'test-data_cleaning.R:459:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-data_cleaning.R:290:3'): ec_geographic_map_w_flag works ────────
  Error: unable to find an inherited method for function 'crop' for signature 'x = "NULL"'
  Backtrace:
      ▆
   1. └─EcoCleanR::ec_geographic_map_w_flag(...) at test-data_cleaning.R:290:3
   2.   └─terra::crop(x = world_map, y = geographic_extent)
   3.     └─methods (local) `<fn>`(`<list>`, `<stndrdGn>`, `<env>`)
  ── Error ('test-data_cleaning.R:326:3'): ec_geographic_map works ───────────────
  Error: unable to find an inherited method for function 'crop' for signature 'x = "NULL"'
  Backtrace:
      ▆
   1. └─EcoCleanR::ec_geographic_map(...) at test-data_cleaning.R:326:3
   2.   └─terra::crop(x = world_map, y = geographic_extent)
   3.     └─methods (local) `<fn>`(`<list>`, `<stndrdGn>`, `<env>`)
  
  [ FAIL 2 | WARN 0 | SKIP 3 | PASS 30 ]
  Error:
  ! Test failures.
  Execution halted