* using log directory ‘/data/gannet/ripley/R/packages/tests-devel/geostatsp.Rcheck’ * using R Under development (unstable) (2025-12-12 r89153) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2) GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2) * running under: Fedora Linux 42 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘geostatsp/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘geostatsp’ version ‘2.0.8’ * checking package namespace information ... OK * checking package dependencies ... INFO Package suggested but not available for checking: ‘RandomFields’ * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘geostatsp’ can be installed ... [68s/214s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/geostatsp-00install.html' for details. * used C compiler: ‘gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’ * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [15s/45s] OK * checking whether the package can be loaded with stated dependencies ... [14s/29s] OK * checking whether the package can be unloaded cleanly ... [13s/26s] OK * checking whether the namespace can be loaded with stated dependencies ... [13s/19s] OK * checking whether the namespace can be unloaded cleanly ... [14s/38s] OK * checking loading without being on the library search path ... [14s/42s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [86s/232s] OK * checking Rd files ... [2s/28s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [14s/28s] OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking include directives in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking sizes of PDF files under ‘inst/doc’ ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [0m/30m] ERROR Running examples in ‘geostatsp-Ex.R’ failed The error most likely occurred in: > ### Name: RFsimulate > ### Title: Simulation of Random Fields > ### Aliases: RFsimulate modelRandomFields RFsimulate RFsimulate-methods > ### RFsimulate,ANY,SpatRaster-method RFsimulate,numeric,SpatRaster-method > ### RFsimulate,numeric,SpatVector-method > ### RFsimulate,RMmodel,SpatVector-method > ### RFsimulate,RMmodel,SpatRaster-method > ### RFsimulate,matrix,SpatRaster-method > ### RFsimulate,matrix,SpatVector-method RFsimulate,data.frame,ANY-method > ### Keywords: spatial > > ### ** Examples > > library('geostatsp') > > # exclude this line to use the RandomFields package > options(useRandomFields = FALSE) > > model1 <- c(var=5, range=1,shape=0.5) > > > myraster = rast(nrows=20,ncols=30,extent = ext(0,6,0,4), + crs="+proj=utm +zone=17 +datum=NAD27 +units=m +no_defs") > > set.seed(0) > > simu <- RFsimulate(model1, x=myraster, n=3) install the RandomFields package for faster simulations * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [0m/90m] ERROR 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [7m/13m] OK * checking PDF version of manual ... [11s/16s] OK * checking HTML version of manual ... [5s/12s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs