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

> ### Name: tonerToTrans
> ### Title: Convert RGB maps to semi-transparent
> ### Aliases: tonerToTrans
> 
> ### ** Examples
> 
> 
> 	data('worldMap');worldMap = unwrap(worldMap)
> 
> 	origMap = openmap(worldMap[worldMap$NAME == 'Sierra Leone',],
+ 	 path='stamen-toner',  
+ 		buffer=100*1000
+ 	)
Warning in utils::download.file(...) :
  downloaded length 0 != reported length 10779
Warning in utils::download.file(...) :
  cannot open URL 'https://tiles.stadiamaps.com/tiles/stamen_toner/6/29/29.png': HTTP status was '401 Unauthorized'
Warning in utils::download.file(...) :
  downloaded length 0 != reported length 10779
Warning in utils::download.file(...) :
  cannot open URL 'https://tiles.stadiamaps.com/tiles/stamen_toner/6/29/30.png': HTTP status was '401 Unauthorized'
Warning in utils::download.file(...) :
  downloaded length 0 != reported length 10779
Warning in utils::download.file(...) :
  cannot open URL 'https://tiles.stadiamaps.com/tiles/stamen_toner/6/29/31.png': HTTP status was '401 Unauthorized'
Warning in utils::download.file(...) :
  downloaded length 0 != reported length 10779
Warning in utils::download.file(...) :
  cannot open URL 'https://tiles.stadiamaps.com/tiles/stamen_toner/6/30/29.png': HTTP status was '401 Unauthorized'
Warning in utils::download.file(...) :
  downloaded length 0 != reported length 10779
Warning in utils::download.file(...) :
  cannot open URL 'https://tiles.stadiamaps.com/tiles/stamen_toner/6/30/30.png': HTTP status was '401 Unauthorized'
Warning in utils::download.file(...) :
  downloaded length 0 != reported length 10779
Warning in utils::download.file(...) :
  cannot open URL 'https://tiles.stadiamaps.com/tiles/stamen_toner/6/30/31.png': HTTP status was '401 Unauthorized'
> 		# path = 'https://tiles.stadiamaps.com/tiles/stamen_toner/')
> 	#	suffix = '@2x.png')
> 	oldpar=	map.new(origMap, bg='green')
> 	plot(origMap, add=TRUE)
> 	
> 	transMap = tonerToTrans(origMap)
Warning in tonerToTrans(origMap) : cant find RGB columns
Error in if (threshold < maxColorValue) xMax[which(xMax > threshold)] = maxColorValue : 
  missing value where TRUE/FALSE needed
Calls: tonerToTrans
Execution halted