Running 'RFsimulate.R' [5s]
  Running 'krige.R' [7s]
  Running 'lgcp.R' [4s]
  Running 'lgm.R' [17s]
  Running 'lgmRaster.R' [6s]
  Running 'likfitLgm.R' [5s]
  Running 'matern.R' [7s]
  Running 'maternGmrfPrec.R' [12s]
  Running 'profLlgm.R' [14s]
  Running 'simLgcp.R' [5s]
  Running 'stackRasterList.R' [6s]
Running the tests in 'tests/RFsimulate.R' failed.
Complete output:
  > library("geostatsp")
  Loading required package: Matrix
  Loading required package: raster
  Loading required package: sp
  > 
  > model <- c(var=5, range=20,shape=0.5)
  > 
  > if (requireNamespace("RandomFields", quietly = TRUE)) { 
  +   myraster = raster(nrows=50,ncols=50,xmn=100,ymn=100,xmx=110,ymx=110, 
  +     crs="+init=epsg:2081")
  + } else {
  +   myraster = raster(nrows=20,ncols=20,xmn=100,ymn=100,xmx=110,ymx=110, 
  +     crs="+init=epsg:2081")
  + }
  > 
  > set.seed(0)
  > simu = RFsimulate(rbind(a=model, b=model+0.1), 
  +   x=myraster, n=3
  + )
Running the tests in 'tests/lgmRaster.R' failed.
Complete output:
  > #+ setup
  > library('geostatsp')
  Loading required package: Matrix
  Loading required package: raster
  Loading required package: sp
  > #'
  > 
  > #' # simulated data
  > 
  > 
  > #+ simData
  > if(.Platform$OS.type == 'windows') {
  + 	Ncell =  30
  + } else {
  + 	Ncell = 40
  + }
  > myRaster = squareRaster(extent(0,6000,0,6000), Ncell)
  > 
  > myParam=c(oneminusar=0.1, conditionalVariance=2.5^2,shape=2)
  > myQ = maternGmrfPrec(myRaster, param=myParam)
  > attributes(myQ)$info$optimalShape
        shape    variance       range    cellSize 
     4.092496  110.524266 1200.000000  200.000000 
  > set.seed(0)
  > mySim = RFsimulate(attributes(myQ)$info$optimalShape, myRaster)
Running the tests in 'tests/likfitLgm.R' failed.
Complete output:
  > library('geostatsp')
  Loading required package: Matrix
  Loading required package: raster
  Loading required package: sp
  > 
  > if(interactive()  | Sys.info()['user'] =='patrick') {
  +   n=300
  + } else {
  +   n=100
  + }
  > 
  > set.seed(0)
  > mydat = SpatialPointsDataFrame(cbind(seq(0,1,len=n), runif(n)), 
  + 		data=data.frame(cov1 = rnorm(n), cov2 = rpois(n, 0.5))
  + )
  > 
  > 
  > 	
  > 
  > trueParamAniso = c(
  +     variance=2^2, range=0.2, shape=2,
  + 		nugget=1^2,anisoRatio=4,anisoAngleDegrees=10)
  > 
  > trueParamIso = c(
  +     variance=2^2, range=0.2, shape=2,
  +     nugget=1^2)
  > 
  > 
  > mydat$U = geostatsp::RFsimulate(trueParamAniso,mydat)$sim
Running the tests in 'tests/simLgcp.R' failed.
Complete output:
  > 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)