Running ‘testthat.R’ [115s/564s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mapSpain)
  > 
  > test_check("mapSpain")
  Downloading https://rts.larioja.org/wmts/mapa_base_rioja?service=WMTS&request=GetTile&version=1.0.0&Format=image/png&layer=mapa_base_rioja&style=default&tilematrixset=GoogleMapsCompatible&TileMatrix=5&TileRow=11&TileCol=15
  
  
  Data and map tiles sources:
  CC BY 4.0 www.iderioja.org
  Caching tiles on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_125_94.png
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_126_94.png
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_125_95.png
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_126_95.png
  
  Data and map tiles sources:
  CC BY 4.0 www.iderioja.org
  Caching tiles on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_125_94.png
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_126_94.png
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_125_95.png
  Tile cached on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IDErioja/IDErioja_8_126_95.png
  
  Data and map tiles sources:
  CC BY 4.0 www.iderioja.org
  Caching tiles on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/IGNBase.Orto
  Downloading https://www.ign.es/wmts/ign-base?service=WMTS&request=GetTile&version=1.0.0&Format=image/png&layer=IGNBaseOrto&style=default&tilematrixset=GoogleMapsCompatible&TileMatrix=5&TileRow=11&TileCol=15
  
  
  Data and map tiles sources:
  CC BY 4.0 scne.es. Sistema Geográfico Nacional IGN
  Downloading from 
  https://servicios.idee.es/wms-inspire/transportes?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=TN.RoadTransportNetwork.RoadLink&SRS=EPSG:3857&WIDTH=512&HEIGHT=512&BBOX=-378968.111374919,4883785.12335032,-378858.111374919,4883895.12335032
   to cache dir 
  /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/RedTransporte.Carreteras
  trying URL 'https://servicios.idee.es/wms-inspire/transportes?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=TN.RoadTransportNetwork.RoadLink&SRS=EPSG:3857&WIDTH=512&HEIGHT=512&BBOX=-378968.111374919,4883785.12335032,-378858.111374919,4883895.12335032'
  downloaded 6727 bytes
  
  
  Data and map tiles sources:
  Sistema Geográfico Nacional SCNE
  trying URL 'https://servicios.idee.es/wms-inspire/transportes?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=TN.RoadTransportNetwork.RoadLink&SRS=EPSG:3857&WIDTH=512&HEIGHT=512&BBOX=-357008.108032291,5114332.44717229,-178805.997002973,5292534.55820161'
  downloaded 74 KB
  
  
  Data and map tiles sources:
  Sistema Geográfico Nacional SCNE
  
  Data and map tiles sources:
  Sistema Geográfico Nacional SCNE
  File already available on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  1.5 Mb
  Reading layer `se89_3_urban_capimuni_p_x' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 8223 features and 9 fields
  Geometry type: MULTIPOINT
  Dimension:     XY
  Bounding box:  xmin: -9.263609 ymin: 35.29506 xmax: 4.289522 ymax: 43.74258
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain
  File already available on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  116 Kb
  Reading layer `se89_3_urban_capimuni_p_y' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 89 features and 9 fields
  Geometry type: MULTIPOINT
  Dimension:     XY
  Bounding box:  xmin: -17.99985 ymin: 27.70427 xmax: -13.49786 ymax: 29.1468
  Geodetic CRS:  ETRS89
  File loaded
  Downloading file from https://github.com/rOpenSpain/mapSpain/raw/sianedata/dist/se89_3_urban_capimuni_p_x.gpkg
  
  See https://github.com/rOpenSpain/mapSpain/tree/sianedata/ for more info
  
  Updating cache
  trying URL 'https://github.com/rOpenSpain/mapSpain/raw/sianedata/dist/se89_3_urban_capimuni_p_x.gpkg'
  Content type 'application/octet-stream' length 1605632 bytes (1.5 MB)
  ==================================================
  downloaded 1.5 MB
  
  Download succesful
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  1.5 Mb
  Reading layer `se89_3_urban_capimuni_p_x' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 8223 features and 9 fields
  Geometry type: MULTIPOINT
  Dimension:     XY
  Bounding box:  xmin: -9.263609 ymin: 35.29506 xmax: 4.289522 ymax: 43.74258
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain
  Downloading file from https://github.com/rOpenSpain/mapSpain/raw/sianedata/dist/se89_3_urban_capimuni_p_y.gpkg
  
  See https://github.com/rOpenSpain/mapSpain/tree/sianedata/ for more info
  
  Updating cache
  trying URL 'https://github.com/rOpenSpain/mapSpain/raw/sianedata/dist/se89_3_urban_capimuni_p_y.gpkg'
  Content type 'application/octet-stream' length 118784 bytes (116 KB)
  ==================================================
  downloaded 116 KB
  
  Download succesful
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  116 Kb
  Reading layer `se89_3_urban_capimuni_p_y' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 89 features and 9 fields
  Geometry type: MULTIPOINT
  Dimension:     XY
  Bounding box:  xmin: -17.99985 ymin: 27.70427 xmax: -13.49786 ymax: 29.1468
  Geodetic CRS:  ETRS89
  File loaded
  File already available on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  1.5 Mb
  Reading layer `se89_3_urban_capimuni_p_x' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 8223 features and 9 fields
  Geometry type: MULTIPOINT
  Dimension:     XY
  Bounding box:  xmin: -9.263609 ymin: 35.29506 xmax: 4.289522 ymax: 43.74258
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain
  File already available on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  116 Kb
  Reading layer `se89_3_urban_capimuni_p_y' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_3_urban_capimuni_p_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 89 features and 9 fields
  Geometry type: MULTIPOINT
  Dimension:     XY
  Bounding box:  xmin: -17.99985 ymin: 27.70427 xmax: -13.49786 ymax: 29.1468
  Geodetic CRS:  ETRS89
  File loaded
  File already available on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_10_hidro_demt_a_x.gpkg
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_10_hidro_demt_a_x.gpkg
  212 Kb
  Reading layer `se89_10_hidro_demt_a_x' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_10_hidro_demt_a_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 18 features and 8 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -9.298027 ymin: 35.25069 xmax: 4.314508 ymax: 43.77594
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain
  File already available on /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_10_hidro_demt_a_y.gpkg
  Reading from local file /home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_10_hidro_demt_a_y.gpkg
  104 Kb
  Reading layer `se89_10_hidro_demt_a_y' from data source 
    `/home/hornik/tmp/scratch/Rtmpb6pkqn/mapSpain/se89_10_hidro_demt_a_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 7 features and 8 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -18.16066 ymin: 27.638 xmax: -13.4192 ymax: 29.29093
  Geodetic CRS:  ETRS89
  File loaded
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-esp_get_hypsobath.R:25:3): hypsobath online ─────────────────────
  Error in `esp_hlp_download_siane(type, resolution, cache, cache_dir, update_cache, 
      verbose, "y")`: 
  Execution halted
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-esp_get_hypsobath.R:25:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.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_get_hypsobath(spatialtype = "area", resolution = "6.5")
   10.   └─mapSpain:::esp_hlp_get_siane(...)
   11.     └─mapSpain:::esp_hlp_download_siane(...)
  ── Error (test-esp_get_munic.R:28:3): munic online ─────────────────────────────
  Error in `esp_hlp_download_siane(type, resolution, cache, cache_dir, update_cache, 
      verbose, "x")`: 
  Execution halted
  Backtrace:
       █
    1. ├─testthat::expect_silent(esp_get_munic_siane()) test-esp_get_munic.R:28:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.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_get_munic_siane()
   10.   └─mapSpain:::esp_hlp_get_siane(...)
   11.     └─mapSpain:::esp_hlp_download_siane(...)
  ── Error (test-esp_get_rivers.R:12:3): rivers online ───────────────────────────
  Error in `esp_hlp_download_siane(type, resolution, cache, cache_dir, update_cache, 
      verbose, "x")`: 
  Execution halted
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-esp_get_rivers.R:12:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.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_get_rivers(...)
   10.   └─mapSpain:::esp_hlp_get_siane(...)
   11.     └─mapSpain:::esp_hlp_download_siane(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 210 ]
  Error: Test failures
  Execution halted