Running ‘RFsimulate.R’ [19s/23s]
  Running ‘krige.R’ [16s/21s]
  Running ‘lgcp.R’ [23s/30s]
  Running ‘lgm.R’ [25s/30s]
  Running ‘lgmRaster.R’ [208s/158s]
  Running ‘likfitLgm.R’ [19s/23s]
  Running ‘matern.R’ [14s/17s]
  Running ‘maternGmrfPrec.R’ [18s/21s]
  Running ‘profLlgm.R’ [24s/24s]
  Running ‘simLgcp.R’ [19s/25s]
  Running ‘stackRasterList.R’ [14s/18s]
Running the tests in ‘tests/simLgcp.R’ failed.
Complete output:
  > options("rgdal_show_exportToProj4_warnings"="none") 
  > library('geostatsp')
  Loading required package: Matrix
  Loading required package: raster
  Loading required package: sp
  > mymodel = c(mean=-1.5, variance=1, 
  + 				range=2, shape=2)
  > 
  > myraster = raster(nrows=15,ncols=15,xmn=0,xmx=10,ymn=0,ymx=10)
  > 
  > # some covariates, deliberately with a different resolution than myraster
  > covA = covB = myoffset = raster(extent(myraster), 10, 10)
  > values(covA) = as.vector(matrix(1:10, 10, 10))
  > values(covB) = as.vector(matrix(1:10, 10, 10, byrow=TRUE))
  > values(myoffset) = round(seq(-1, 1, len=ncell(myoffset)))
  > 
  > myCovariate = list(a=covA, b=covB, offsetFooBar = myoffset)
  > 
  > set.seed(0)
  > myLgcp=simLgcp(mymodel, myCovariate, 
  +     betas=c(a=-0.1, b=0.25), 
  + 	offset='offsetFooBar',
  + 	rasterTemplate=myraster)
  New output format of RFsimulate: S4 object of class 'RFsp';
  for a bare, but faster array format use 'RFoptions(spConform=FALSE)'.
  > 
  > if(requireNamespace("INLA", quietly=TRUE)) {
  + res = lgcp(data=myLgcp$events, 
  + 		formula = ~ a + b + offset(offsetFooBar),
  + 		grid=squareRaster(myoffset, 15), 
  + 		covariates=myCovariate,
  + 		priorCI=list(sd=c(0.9, 1.1), range=c(0.4, 0.41)),
  + 		control.mode=list(theta=c(0.022, -0.5),restart=TRUE)
  + )
  + 
  + res$parameters$summary[,c(1,3,5)]
  + 
  + lgcpRoc =  spatialRoc(
  +   fit=res, 
  + 	rr=c(2,3), 
  + 	truth=myLgcp, 
  + 	random=FALSE)
  + 
  + head(lgcpRoc)
  + 
  + plot(lgcpRoc[,'onemspec'] , 
  + 	lgcpRoc[,'2'], 
  + 	type='o', 
  + 	xlim=c(0,1), ylim=c(0,1),
  + 	ylab='sensitivity', xlab='1-specificity'
  + )
  + 
  + }
  
  
  	GitID: file: error-handler.c  770fd3bf230ee6f56b07b40276712783a6ce895c - Sun Nov 21 18:53:10 2021 +0300
  	Error:6 Reason: Error reordering the graph
  	Message: Condition `result == 0' is not TRUE
  	Line:1912 Function: GMRFLib_amdc
  
  sh: line 1: 2768032 Aborted                 (core dumped) '/data/gannet/ripley/R/test-4.2/INLA/bin/linux/64bit/inla.mkl.run' -s -v -t24:1 -B0 -P classic '/tmp/RtmpPKTyyU/working_dir/Rtmp0vB7ft/file2a327c67571e69/Model.ini' > '/tmp/RtmpPKTyyU/working_dir/Rtmp0vB7ft/file2a327c67571e69/Logfile.txt'
  Error in inla.inlaprogram.has.crashed() : 
    The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
    If this does not help, please contact the developers at <help@r-inla.org>.
  Error in (function (classes, fdef, mtable)  : 
    unable to find an inherited method for function 'rasterize' for signature '"list", "RasterLayer"'
  Calls: spatialRoc -> spatialRocPolyTemplate -> rasterize -> <Anonymous>
  Execution halted