Running 'testthat.R' [28s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(mapSpain)
  > 
  > test_check("mapSpain")
  Starting 2 test processes
  [ FAIL 3 | WARN 1 | SKIP 29 | PASS 127 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (29)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-esp_dict.R:35:3'): Testing dict ────────────────────────────────
  Error: cannot allocate vector of size 1.1 Mb
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(esp_dict_region_code(iso2vals, origin = "iso2")) at test-esp_dict.R:35:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─mapSpain::esp_dict_region_code(iso2vals, origin = "iso2")
   10.   └─sf::st_drop_geometry(mapSpain::esp_nuts.sf)
  ── Failure ('test-esp_get_can_box.R:4:3'): Testing can bbox ────────────────────
  `esp_get_can_box()` produced warnings.
  ── Error ('test-esp_get_ccaa.R:31:3'): CCAA ────────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: OGR error
  Backtrace:
       ▆
    1. └─mapSpain::esp_get_ccaa(ccaa = f$codauto) at test-esp_get_ccaa.R:31:2
    2.   ├─base::do.call(mapSpain::esp_get_nuts, params)
    3.   └─mapSpain (local) `<fn>`(region = `<chr>`, nuts_level = 2, moveCAN = TRUE)
    4.     └─mapSpain:::esp_hlp_all2nuts(region)
    5.       ├─sf::st_drop_geometry(esp_get_nuts())
    6.       └─mapSpain::esp_get_nuts()
    7.         ├─sf::st_transform(data_sf, as.double(init_epsg))
    8.         └─sf:::st_transform.sf(data_sf, as.double(init_epsg))
    9.           ├─sf::st_transform(st_geometry(x), crs, ...)
   10.           └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   11.             ├─sf::st_sfc(...)
   12.             ├─base::structure(...)
   13.             └─sf:::CPL_transform(...)
  
  [ FAIL 3 | WARN 1 | SKIP 29 | PASS 127 ]
  Error: Test failures
  Execution halted