Running ‘testthat.R’ [255s/386s]
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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_125_94.png
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_126_94.png
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_125_95.png
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_126_95.png
  
  Data and map tiles sources:
  CC BY 4.0 www.iderioja.org
  Caching tiles on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_125_94.png
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_126_94.png
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_125_95.png
  Tile cached on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/IDErioja/IDErioja_8_126_95.png
  
  Data and map tiles sources:
  CC BY 4.0 www.iderioja.org
  Caching tiles on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/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
  
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  1.5 Mb
  Reading layer `se89_3_urban_capimuni_p_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  116 Kb
  Reading layer `se89_3_urban_capimuni_p_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  1.5 Mb
  Reading layer `se89_3_urban_capimuni_p_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  116 Kb
  Reading layer `se89_3_urban_capimuni_p_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_x.gpkg
  1.5 Mb
  Reading layer `se89_3_urban_capimuni_p_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_urban_capimuni_p_y.gpkg
  116 Kb
  Reading layer `se89_3_urban_capimuni_p_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_demt_a_x.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_demt_a_x.gpkg
  212 Kb
  Reading layer `se89_10_hidro_demt_a_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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 /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_demt_a_y.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_demt_a_y.gpkg
  104 Kb
  Reading layer `se89_10_hidro_demt_a_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/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
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg
  5.3 Mb
  Reading layer `se89_3_admin_muni_a_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 8345 features and 13 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -9.298634 ymin: 35.26523 xmax: 4.327771 ymax: 43.78994
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg
  176 Kb
  Reading layer `se89_3_admin_muni_a_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 90 features and 13 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -18.16066 ymin: 27.638 xmax: -13.4192 ymax: 29.41635
  Geodetic CRS:  ETRS89
  File loaded
  Downloading file from https://github.com/rOpenSpain/mapSpain/raw/sianedata/dist/se89_3_admin_muni_a_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_admin_muni_a_x.gpkg'
  Content type 'application/octet-stream' length 5586944 bytes (5.3 MB)
  ==================================================
  downloaded 5.3 MB
  
  Download succesful
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg
  5.3 Mb
  Reading layer `se89_3_admin_muni_a_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 8345 features and 13 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -9.298634 ymin: 35.26523 xmax: 4.327771 ymax: 43.78994
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  Downloading file from https://github.com/rOpenSpain/mapSpain/raw/sianedata/dist/se89_3_admin_muni_a_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_admin_muni_a_y.gpkg'
  Content type 'application/octet-stream' length 180224 bytes (176 KB)
  ==================================================
  downloaded 176 KB
  
  Download succesful
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg
  176 Kb
  Reading layer `se89_3_admin_muni_a_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 90 features and 13 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -18.16066 ymin: 27.638 xmax: -13.4192 ymax: 29.41635
  Geodetic CRS:  ETRS89
  File loaded
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg
  5.3 Mb
  Reading layer `se89_3_admin_muni_a_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 8345 features and 13 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -9.298634 ymin: 35.26523 xmax: 4.327771 ymax: 43.78994
  Geodetic CRS:  ETRS89
  File loaded
  Cache dir is /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg
  176 Kb
  Reading layer `se89_3_admin_muni_a_y' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_3_admin_muni_a_y.gpkg' 
    using driver `GPKG'
  Simple feature collection with 90 features and 13 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -18.16066 ymin: 27.638 xmax: -13.4192 ymax: 29.41635
  Geodetic CRS:  ETRS89
  File loaded
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_rio_l_x.gpkg
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_rio_l_x.gpkg
  208 Kb
  Reading layer `se89_10_hidro_rio_l_x' from data source 
    `/tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/se89_10_hidro_rio_l_x.gpkg' 
    using driver `GPKG'
  Simple feature collection with 342 features and 9 fields
  Geometry type: LINESTRING
  Dimension:     XY
  Bounding box:  xmin: -8.967887 ymin: 33.36911 xmax: 6.60459 ymax: 45.0182
  Geodetic CRS:  ETRS89
  File loaded
  Shape not provided for Canary Islands
  Cache dir is /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain
  File already available on /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/rivernames.rda
  Reading from local file /tmp/Rtmpge067H/working_dir/RtmppAZp6d/mapSpain/rivernames.rda
  696.4 Kb
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-esp_getTiles.R:17:3): tiles online ──────────────────────────────
  Error: cannot open URL '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'
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-esp_getTiles.R:17:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─mapSpain::esp_getTiles(poly, zoom = 2, verbose = TRUE, type = "IGNBase.Orto")
    8.   └─mapSpain:::getwmts(...)
    9.     └─base::apply(...)
   10.       └─mapSpain:::FUN(newX[, i], ...)
   11.         └─utils::download.file(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 233 ]
  Error: Test failures
  Execution halted