Running ‘colourScale.R’ [4s/4s]
  Running ‘omerc.R’ [10s/10s]
  Running ‘openmap.R’ [44s/48s]
  Running ‘worldMap.R’ [16s/18s]
Running the tests in ‘tests/worldMap.R’ failed.
Complete output:
  > #+ setup
  > library('mapmisc')
  Loading required package: sp
  Loading required package: raster
  map images will be cached in  /tmp/RtmpypouJF/mapmiscCache
  > 
  > if(!exists('mapmiscCachePath'))
  +   mapmiscCachePath = system.file('extdata', package='mapmisc')
  > 
  > if(!exists('mapmiscCacheReadOnly'))
  +   mapmiscCacheReadOnly = TRUE
  > 
  > mapmiscCachePath
  [1] "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/mapmisc/extdata"
  > 
  > options(
  +   mapmiscCachePath = mapmiscCachePath,
  +   mapmiscCacheReadOnly = mapmiscCacheReadOnly,
  +   mapmiscVerbose=TRUE)
  > 
  > getOption("mapmiscCachePath")
  [1] "/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/mapmisc/extdata"
  > getOption("mapmiscCacheReadOnly")
  [1] TRUE
  > #'
  > 
  > 
  > #+ themaps, fig.cap='some maps', fig.subcap = c('projectable region', 'projected, with bg','projected, with world countries','projectable madagascar','madagascar')
  > Spackages = c('rgdal', 'rgeos', 'geosphere', 'maptools')
  > 
  > if(all(unlist(mapply(requireNamespace, package=Spackages, MoreArgs=list(quietly=TRUE))))){
  + 	library('rgdal')
  + 
  + 	data('wrld_simpl', package='maptools')
  + 	
  + 	country='Japan'
  + 	Dcountry  = grep(country, wrld_simpl$NAME)
  + 	x=wrld_simpl[Dcountry,]
  + 
  + 	myCrsO = moll(x, angle=25)
  + 
  +  plot(wrld_simpl)
  +  plot(attributes(myCrsO)$regionLL, border='red', col='#0000FF10', add=TRUE)
  +  
  +  myMap = openmap(myCrsO, zoom=1, fact=2)
  +  map.new(myMap)
  +  plot(myMap, add=TRUE)
  +  gridlinesWrap(myCrsO, lty=2, col='orange')
  + 
  +  xTcrop = wrapPoly(x=wrld_simpl, crs=myCrsO)
  + 	DcountryT  = grep(country, xTcrop$NAME)
  + 	
  + 	map.new(xTcrop, buffer=1000*1000)
  +  plot(attributes(myCrsO)$ellipse, add=TRUE, col='lightBlue', border='blue')
  + 	plot(xTcrop,add=TRUE, col='grey')
  + 	plot(xTcrop[DcountryT,], col='red', lty=0, add=TRUE)
  + 	
  + 	gridlinesWrap(myCrsO, lty=2, col='orange')
  + 	
  + 
  +  country='Madagascar'
  + 	Dcountry  = grep(country, wrld_simpl$NAME)
  + 	x=wrld_simpl[Dcountry,]
  + 	
  + 	myCrsMoll = moll(x, angle=100, flip= 'nwu' )
  + 	
  + 	plot(attributes(myCrsMoll)$ellipse)
  + 	
  + 	plot(wrld_simpl)
  + 	plot(attributes(myCrsMoll)$crop, border='red', col='#0000FF10', add=TRUE)
  + 	
  + 	xTcrop = wrapPoly(x=wrld_simpl, crs=myCrsMoll)
  + 	DcountryT  = grep(country, xTcrop$NAME)
  + 	
  + 	map.new(xTcrop)
  + 	plot(attributes(myCrsMoll)$ellipse, add=TRUE, col='lightBlue', border='blue')
  + 	plot(xTcrop,add=TRUE, col='grey')
  + 	plot(xTcrop[DcountryT,], col='green', add=TRUE)
  + 	
  + 	gridlinesWrap(crs=xTcrop, lty=2, col='red')
  + 
  + 	
  + 	
  + 	country='Iceland'
  + 	Dcountry  = grep(country, wrld_simpl$NAME)
  + 	x=wrld_simpl[Dcountry,]
  + 	
  + 	myCrsMoll = moll(x,  angle=0, flip= 'nwu' )
  + 	
  + 	plot(attributes(myCrsMoll)$ellipse)
  + 	
  + 	plot(wrld_simpl)
  + 	plot(attributes(myCrsMoll)$crop, border='red', col='#0000FF10', add=TRUE)
  + 	
  + 	xTcrop = wrapPoly(x=wrld_simpl, crs=myCrsMoll)
  + 	DcountryT  = grep(country, xTcrop$NAME)
  + 	
  + 	map.new(xTcrop)
  + 	plot(attributes(myCrsMoll)$ellipse, add=TRUE, col='lightBlue', border='blue')
  + 	plot(xTcrop,add=TRUE, col='grey')
  + 	plot(xTcrop[DcountryT,], col='green', add=TRUE)
  + 	
  + 	gridlinesWrap(crs=xTcrop, lty=2, col='red')
  + 	
  + 	
  + }
  rgdal: version: 1.4-7, (SVN revision 845)
   Geospatial Data Abstraction Library extensions to R successfully loaded
   Loaded GDAL runtime: GDAL 2.4.2, released 2019/06/28
   Path to GDAL shared files: /usr/share/gdal
   GDAL binary built with GEOS: TRUE 
   Loaded PROJ.4 runtime: Rel. 6.2.0, September 1st, 2019, [PJ_VERSION: 620]
   Path to PROJ.4 shared files: (autodetected)
   Linking to sp version: 1.3-1 
  zoom is  1 ,  4 tiles
  http://tile.openstreetmap.org/ 
  http://tile.openstreetmap.org/ 
  tile  /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/mapmisc/extdata/org/1/0/0.png  cached
  tile  /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/mapmisc/extdata/org/1/0/1.png  cached
  tile  /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/mapmisc/extdata/org/1/1/0.png  cached
  tile  /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/mapmisc/extdata/org/1/1/1.png  cached
  reprojecting  262144  cells...done
  copying colortable for  http...tile.openstreetmap.org. 
  x is invalid
  Error in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  : 
    TopologyException: Input geom 0 is invalid: Ring Self-intersection at or near point -95.902496339999999 66.946641920000005 at -95.902496339999999 66.946641920000005
  Calls: wrapPoly -> <Anonymous> -> RGEOSBinTopoFunc
  In addition: Warning messages:
  1: In RGEOSUnaryPredFunc(spgeom, byid, "rgeos_isvalid") :
    Ring Self-intersection at or near point -95.902496339999999 66.946641920000005
  2: In RGEOSUnaryPredFunc(spgeom, byid, "rgeos_isvalid") :
    Ring Self-intersection at or near point -70.917236329999994 -54.70861816
  3: In RGEOSUnaryPredFunc(spgeom, byid, "rgeos_isvalid") :
    Ring Self-intersection at or near point 5.3369464899999999 61.592775340000003
  4: In RGEOSUnaryPredFunc(spgeom, byid, "rgeos_isvalid") :
    Ring Self-intersection at or near point 143.66192817999999 49.312211990000002
  5: In rgeos::gDifference(x, toCropX, byid = TRUE) :
    Invalid objects found; consider using set_RGEOS_CheckValidity(2L)
  Execution halted