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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: blockPredict
> ### Title: Spatial block prediction
> ### Aliases: blockPredict spatialPredict.block
> ### Keywords: spatial
> 
> ### ** Examples
> 
> # This example skips some steps that might be necessary for more complicated
> # tasks, such as estimateParameters and pre- and postProcessing of the data
> data(meuse)
> coordinates(meuse) = ~x+y
> meuse$value = log(meuse$zinc)
> data(meuse.grid)
> gridded(meuse.grid) = ~x+y
> proj4string(meuse) = CRS("+init=epsg:28992")
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Amersfoort in CRS definition
> proj4string(meuse.grid) = CRS("+init=epsg:28992")
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Amersfoort in CRS definition
> 
> # set up intamap object:
> obj = createIntamapObject(
+ 	observations = meuse,
+ 	predictionLocations = meuse.grid[sample(1:length(meuse.grid),10),],
+ # Prediction for a different projection possible if rgdal is available
+ 	targetCRS = ifelse(require(rgdal), "+init=epsg:3035", "+init=epsg:28992"),
+ 	class = "automap"
+ )
Warning in proj4string(observations) :
  CRS object has comment, which is lost in output
Warning in proj4string(observations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
[1] "createIntamapObject: formulaString is missing, using:  value~1"
Warning in proj4string(observations) :
  CRS object has comment, which is lost in output
Loading required package: rgdal
rgdal: version: 1.5-19, (SVN revision 1092)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.2.0, released 2020/10/26
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE 
Loaded PROJ runtime: Rel. 7.2.0, November 1st, 2020, [PJ_VERSION: 720]
Path to PROJ shared files: /home/hornik/.local/share/proj:/usr/share/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.4-4
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
> 
> # do interpolation step:
> obj = conformProjections(obj)
Warning in proj4string(observations) :
  CRS object has comment, which is lost in output
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
> obj = estimateParameters(obj) 
> obj = blockPredict(obj,block=c(100,100))  # blockPredict
Warning in proj4string(d$data) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
[using ordinary kriging]
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
[1] "performed ordinary block kriging"
> 
> 
> # intamap object for which simulation is needed:
> meuse$value = meuse$zinc
> obj = createIntamapObject(
+ 	observations = meuse,
+ 	predictionLocations = meuse.grid[sample(1:length(meuse.grid),5),],
+ 	params = list(ngrid = 16),
+   class = "transGaussian"  # trans-Gaussian kriging method
+ )
Warning in proj4string(observations) :
  CRS object has comment, which is lost in output
Warning in proj4string(observations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
[1] "createIntamapObject: formulaString is missing, using:  value~1"
> obj = estimateParameters(obj, lambda = 0)  # lambda is optional, lambda = 0 gives lognormal kriging
> obj = blockPredict(obj,block=c(100,100))  # blockPredict
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(obj) :
  CRS object has comment, which is lost in output
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in proj4string(predictionLocations) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(obj) :
  CRS object has comment, which is lost in output
Warning in proj4string(d$data) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(d$data) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(d$data) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Warning in proj4string(d$data) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in proj4string(newdata) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition
Error in res[[i]] <- candi[ret] : 
  more elements supplied than there are to replace
Calls: blockPredict ... over -> over -> pointsInSpatialPolygons -> pointsInPolys2
Execution halted