Running ‘RFsimulate.R’ [90m/85m]
  Running ‘krige.R’ [23s/83s]
  Running ‘lgcp.R’ [69s/157s]
  Running ‘lgm.R’ [20s/60s]
  Running ‘lgmRaster.R’ [0s/20s]
  Running ‘likfitLgm.R’
Running the tests in ‘tests/RFsimulate.R’ failed.
Complete output:
  > library("geostatsp")
  Loading required package: Matrix
  Loading required package: terra
  terra 1.8.86
  > 
  > model <- c(var=5, range=20,shape=0.5)
  > 
  > # any old crs
  > theCrs = "+proj=utm +zone=17 +datum=NAD27 +units=m +no_defs"
  > 
  > # don't test using the randomFields package, it's currently broken on some R builds
  > options(useRandomFields = FALSE)
  > 
  >   myraster = rast(nrows=20,ncols=20,extent = ext(100,110,100,110), 
  +     crs=theCrs)
  > 
  > set.seed(0)
  > simu = RFsimulate(model = rbind(a=model, b=model+0.1), 
  +   x=myraster, n=4
  + )
Running the tests in ‘tests/lgm.R’ failed.
Complete output:
  > library("geostatsp")
  Loading required package: Matrix
  Loading required package: terra
  terra 1.8.86
  > data("swissRain")
  > swissRain = unwrap(swissRain)
  > swissAltitude= unwrap(swissAltitude)
  > swissLandType = unwrap(swissLandType)
  > 
  > bob = function(x) {
  + 	thepar = x$param
  + 	pdf(tempfile("lgm", tmpdir=".", fileext=".pdf"))
  + 	plot(x$predict[["predict"]], main=
  + 					paste(
  + 							paste(names(thepar), thepar, sep="="),
  + 							collapse=", "),cex.main=0.3
  + 	)
  + 	dev.off()
  + }
  > 
  > 
  >   
  >   # specify formula name of raster layer
  >   swissFit = lgm(data=swissRain[1:60,], formula=rain~ CHE_alt,
  +   		grid=80, covariates=swissAltitude,
  +   		shape=2,  fixShape=TRUE, 
  +   		boxcox=0.5, fixBoxcox=TRUE, 
  +   		aniso=TRUE)	
  > names(swissFit)
  [1] "predict"    "optim"      "betaHat"    "varParam"   "parameters"
  [6] "data"       "model"      "summary"   
  > swissFit$summary[,1:4]
                        estimate       stdErr      ci0.005      ci0.995
  (Intercept)        5.539667532 1.5186552399  1.627870863 9.451464e+00
  CHE_alt            0.001035103 0.0005719224 -0.000438072 2.508277e-03
  sdNugget           0.968107658           NA  0.641881115 1.460134e+00
  sdSpatial          3.151230623           NA  1.493616604 6.648463e+00
  range/1000        46.171859919           NA 17.631646763 1.209099e+02
  shape              2.000000000           NA           NA           NA
  anisoRatio         8.126224277           NA  2.494065801 2.647706e+01
  anisoAngleRadians  0.642065353           NA  0.505367946 7.787628e-01
  anisoAngleDegrees 36.787634916           NA 28.955450418 4.461982e+01
  boxcox             0.500000000           NA           NA           NA
  > bob(swissFit)
  
  Execution halted
Running the tests in ‘tests/lgmRaster.R’ failed.
Complete output:
  > #+ setup
  > library('geostatsp')
  Loading required package: Matrix
  Loading required package: terra