Running 'colourScale.R' [7s]
  Running 'omerc.R' [26s]
  Running 'openmap.R' [343s]
  Running 'worldMap.R' [56s]
Running the tests in 'tests/openmap.R' failed.
Complete output:
  > #+ setup
  > 
  > library('mapmisc')
  Loading required package: terra
  terra 1.7.71
  map images will be cached in  D:\temp\Rtmp2H25lK/mapmiscCache
  > 
  > #if(!exists('mapmiscCachePath'))
  > #  mapmiscCachePath = system.file('extdata', package='mapmisc')
  > 
  > #if(!exists('mapmiscCacheReadOnly'))
  > #  mapmiscCacheReadOnly = TRUE
  > 
  > 
  > options(
  + #  mapmiscCachePath = mapmiscCachePath,
  + #  mapmiscCacheReadOnly = mapmiscCacheReadOnly,
  +   mapmiscVerbose=TRUE)
  > 
  > #getOption("mapmiscCachePath")
  > #getOption("mapmiscCacheReadOnly")
  > #'
  > 
  > if(!interactive()) pdf("openmap.pdf")
  > 
  > #+ simplePlot
  > myraster = rast(ext(8,18,0,10), crs=crsLL)
  > values(myraster) = seq(0,1,len=ncell(myraster))
  > 
  > myPoints = as.points(myraster)[
  +   seq(1,ncell(myraster),len=5)]
  > 
  > plot(myraster)
  > points(myPoints)
  > #'
  > #' 
  > #+ africaPlots 
  >   
  >   # utm zone 32
  >   utmproj = crs("+init=epsg:3064") 
  >   myrasterUTM = project(myraster, utmproj)
  >   myPointsUTM = project(myPoints, utmproj)
  >   plot(myrasterUTM)
  >   points(myPointsUTM)
  >   
  >   myPointsMercator = project(myPoints, crsMerc)
  >   
  >   
  >   myplot = function(first,second=first) {
  +     par(mar=c(0,0,0,0))
  +     plot(first)
  +     plot(mytiles, add=TRUE)
  +     plot(second,add=TRUE,col='blue')
  + #	points(mycities,col='red')
  + #	text(mycities, labels=mycities$name, col='red',pos=4)
  +     scaleBar(first)
  +   }
  >   
  >   thezoom=6
  >   
  >   print(1)
  [1] 1
  > 
  > # and if the OpenStreetMap.org web site can be accessed
  >   
  >   # raster, result will be in project of the raster (long-lat)
  >   mytiles = openmap(
  +     x=extend(myraster,1),
  +     zoom=thezoom)
  http://tile.openstreetmap.org/ 
  http://tile.openstreetmap.org/ 
  downloading  http://tile.openstreetmap.org/6/33/30.png 
  trying URL 'http://tile.openstreetmap.org/6/33/30.png'
  Content type 'image/png' length 25450 bytes (24 KB)
  ================================================
  downloaded 24 KB
  
  downloading  http://tile.openstreetmap.org/6/33/31.png 
  trying URL 'http://tile.openstreetmap.org/6/33/31.png'
  downloading  http://tile.openstreetmap.org/6/33/32.png 
  trying URL 'http://tile.openstreetmap.org/6/33/32.png'
  downloading  http://tile.openstreetmap.org/6/34/30.png 
  trying URL 'http://tile.openstreetmap.org/6/34/30.png'
  downloading  http://tile.openstreetmap.org/6/34/31.png 
  trying URL 'http://tile.openstreetmap.org/6/34/31.png'
  Content type 'image/png' length 29481 bytes (28 KB)
  ==============
  downloaded 8736 bytes
  
  downloading  http://tile.openstreetmap.org/6/34/32.png 
  trying URL 'http://tile.openstreetmap.org/6/34/32.png'
  Content type 'image/png' length 23879 bytes (23 KB)
  ==================================================
  downloaded 23 KB
  
  downloading  http://tile.openstreetmap.org/6/35/30.png 
  trying URL 'http://tile.openstreetmap.org/6/35/30.png'
  Content type 'image/png' length 23766 bytes (23 KB)
  ==================================================
  downloaded 23 KB
  
  downloading  http://tile.openstreetmap.org/6/35/31.png 
  trying URL 'http://tile.openstreetmap.org/6/35/31.png'
  downloading  http://tile.openstreetmap.org/6/35/32.png 
  trying URL 'http://tile.openstreetmap.org/6/35/32.png'
  Error : [subst] too few values for writing: 0 < 65536
  In addition: There were 15 warnings (use warnings() to see them)
  Error: unable to find an inherited method for function 'crs' for signature 'x = "try-error"'
  Execution halted