Running ‘RFsimulate.R’ [90m/46m]
  Running ‘krige.R’ [21s/21s]
  Running ‘lgcp.R’ [20s/21s]
  Running ‘lgm.R’ [72s/58s]
  Running ‘lgmRaster.R’ [0m/43m]
  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.93
  > 
  > Sys.setenv(
  +   OMP_NUM_THREADS = "2",
  +   OPENBLAS_NUM_THREADS = "2",
  +   MKL_NUM_THREADS = "2",
  +   BLIS_NUM_THREADS = "2",
  +   VECLIB_MAXIMUM_THREADS = "2",   # macOS Accelerate
  +   NUMEXPR_NUM_THREADS = "2"
  + )
  > options(mc.cores = 2)
  > 
  > 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
  + )
  OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
  OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
Running the tests in ‘tests/lgmRaster.R’ failed.
Complete output:
  > #+ setup
  > library('geostatsp')
  Loading required package: Matrix
  Loading required package: terra
  terra 1.8.93
  > #'
  > 
  > #' # simulated data
  > 
  > # exclude this line to use the RandomFields package
  > options(useRandomFields = FALSE)
  > 
  > Ncell =  40
  > 
  > myRaster = squareRaster(ext(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 900.000000 150.000000 
  > set.seed(0)
  > mySim = RFsimulate(attributes(myQ)$info$optimalShape, myRaster)
  install the RandomFields package for faster simulations
  OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
  OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).