Running ‘testthat.R’ [21s/30s]
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
  Saving _problems/test-data_cleaning-162.R
  Extracting BO_sstmean...
  Imputation iteration 1
  Imputation iteration 2
  No more missing values to impute.
  trying URL 'https://geodata.ucdavis.edu/gadm/gadm3.6/gadm36_adm0_r3_pk.rds'
  Content type 'unknown' length 2438344 bytes (2.3 MB)
  ==================================================
  downloaded 2.3 MB
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 31 ]
  
  ══ 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:162:3'): ec_flag_non_region works ──────────────
  Error in `mrp_get_sanity_check(.)`: ! HTTP 400 Bad Request
  i Exception Code: NoApplicableCode
  i Exception Text: java.nio.BufferOverflowException
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-data_cleaning.R:162:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─EcoCleanR::ec_flag_non_region(direction, ocean, buffer, test_data4)
    5. │ └─EcoCleanR (local) flag_function(...)
    6. │   └─base::lapply(...)
    7. │     └─EcoCleanR (local) FUN(X[[i]], ...)
    8. │       └─mregions2::mrp_get(...)
    9. │         └─... %>% mrp_get_sanity_check()
   10. └─mregions2:::mrp_get_sanity_check(.)
   11.   └─cli::cli_abort(msg)
   12.     └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 31 ]
  Error:
  ! Test failures.
  Execution halted