Running examples in 'mapmisc-Ex.R' failed
The error most likely occurred in:

> ### Name: openmap
> ### Title: Download map tiles
> ### Aliases: openmap osmTiles openmapAttribution
> 
> ### ** Examples
> 
> 
> data("netherlands")
> nldTiles = terra::unwrap(nldTiles)
> plot(nldTiles)
> 
> openmapAttribution(nldTiles, short=TRUE, type='markdown')
[1] NA
> 
> openmapAttribution("stamen-toner", type='text')
[1] "Map tiles by Stamen Design under CC BY 3.0 (creativecommons.org/licenses/by/3.0). Data by OpenStreetMap.org available under the Open Database License (opendatacommons.org/licenses/odbl)"
> 
> 
> myraster = rast(matrix(1:100,10,10),extent=ext(8, 18, 0, 10), crs=crsLL)
> 
> myPoints = as.points(myraster)[seq(1, ncell(myraster), len=12)]
> 
> names(osmTiles())
 [1] "osm"                 "osm-admin"           "osm-roads-grey"     
 [4] "osm-roads"           "osm-semitransparent" "osm-de"             
 [7] "osm-ru"              "osm-transport"       "stamen-toner"       
[10] "stamen-watercolor"   "stamen-terrain"      "bw-mapnik"          
[13] "bvg"                 "esri"                "esri-satellite"     
[16] "esri-natgeo"         "esri-overlay"        "esri-topo"          
[19] "komoot"              "osm-cyclemap"        "osm-seamap"         
[22] "osm-fr"              "landscape"           "hyda"               
[25] "hyda-base"           "hyda-roads"          "opentopomap"        
[28] "maptoolkit"          "waze"                "waze-us"            
[31] "humanitarian"        "cartodb"             "cartodb-dark"       
[34] "nrcan"               "nrcan-text"          "nrcan-text-fr"      
[37] "spinal"              "neighbourhood"       "pioneer"            
[40] "mobile-atlas"        "wikimedia"           "sputnik"            
[43] "osm-labels-en"       "osm-labels-fr"       "osm-labels-de"      
[46] "osm-labels-it"       "osm-labels-es"       "osm-labels-ru"      
> 
> 
> 	mytiles = try(openmap(myraster, zoom=5, verbose=TRUE))
http://tile.openstreetmap.org/ 
http://tile.openstreetmap.org/ 
downloading  http://tile.openstreetmap.org/5/16/15.png 
trying URL 'http://tile.openstreetmap.org/5/16/15.png'
Content type 'image/png' length 21899 bytes (21 KB)
==================================================
downloaded 21 KB

downloading  http://tile.openstreetmap.org/5/17/15.png 
trying URL 'http://tile.openstreetmap.org/5/17/15.png'
Content type 'image/png' length 29050 bytes (28 KB)
==================================================
downloaded 28 KB

reprojecting
reprojecting:   2  cycles:1  1 
> 
> oldpar =	map.new(myraster)
> 	plot(mytiles, add=TRUE)
> 	points(myPoints,col='red')
> 
> 	myPoints = project(myPoints, crsMerc)
> 	x = myPoints;path='waze'
> 	mytiles = try(openmap(myPoints,
+ 		path='waze', verbose=TRUE, buffer=5))
zoom is  6 ,  6 tiles
waze 
https://worldtiles2.waze.com/tiles/ 
downloading  https://worldtiles2.waze.com/tiles/6/33/30.png 
trying URL 'https://worldtiles2.waze.com/tiles/6/33/30.png'
Warning in utils::download.file(...) :
  URL 'https://worldtiles2.waze.com/tiles/6/33/30.png': status was 'Failure when receiving data from the peer'
Warning in getTiles(outraster, zoom = zoom, path = Durl, verbose = verbose,  :
  tile D:\temp\Rtmp0SHYMN/myCache/worldtiles2.waze.com.tiles/6/33/30.png cannot be loaded
downloading  https://worldtiles2.waze.com/tiles/6/33/31.png 
trying URL 'https://worldtiles2.waze.com/tiles/6/33/31.png'
downloaded 19 KB

downloading  https://worldtiles2.waze.com/tiles/6/34/30.png 
trying URL 'https://worldtiles2.waze.com/tiles/6/34/30.png'
downloaded 13 KB

downloading  https://worldtiles2.waze.com/tiles/6/34/31.png 
trying URL 'https://worldtiles2.waze.com/tiles/6/34/31.png'
downloaded 16 KB

downloading  https://worldtiles2.waze.com/tiles/6/35/30.png 
trying URL 'https://worldtiles2.waze.com/tiles/6/35/30.png'
downloaded 11 KB

downloading  https://worldtiles2.waze.com/tiles/6/35/31.png 
trying URL 'https://worldtiles2.waze.com/tiles/6/35/31.png'
downloaded 13 KB

Error : [error] x has no color table
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function 'crs' for signature '"try-error"'
> 	map.new(myPoints)
> 	plot(mytiles, add=TRUE)
Warning in xy.coords(x, y, xlabel, ylabel, log) :
  NAs introduced by coercion
Warning in min(x) : no non-missing arguments to min; returning Inf
Warning in max(x) : no non-missing arguments to max; returning -Inf
Warning in plot.window(...) : "add" is not a graphical parameter
Error in plot.window(...) : need finite 'ylim' values
Calls: plot -> plot -> plot.default -> localWindow -> plot.window
Execution halted