CRAN Package Check Results for Maintainer ‘Patrick Brown <patrick.brown at utoronto.ca>’

Last updated on 2025-12-04 09:50:30 CET.

Package ERROR NOTE OK
diseasemapping 2 11
geostatsp 3 2 8
mapmisc 1 12

Package diseasemapping

Current CRAN status: NOTE: 2, OK: 11

Version: 2.0.6
Check: package dependencies
Result: NOTE Package which this enhances but not available for checking: ‘INLA’ Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Package geostatsp

Current CRAN status: ERROR: 3, NOTE: 2, OK: 8

Version: 2.0.8
Check: examples
Result: 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 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). Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.0.8
Check: tests
Result: ERROR Running ‘RFsimulate.R’ [89m/58m] Running ‘krige.R’ [22s/32s] Running ‘lgcp.R’ [20s/26s] Running ‘lgm.R’ [74s/73s] Running ‘lgmRaster.R’ [0m/30m] 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 + ) 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.86 > #' > > #' # 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). Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.0.8
Check: examples
Result: 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 Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 2.0.8
Check: tests
Result: ERROR Running ‘RFsimulate.R’ [89m/58m] Running ‘krige.R’ [21s/25s] Running ‘lgcp.R’ [70s/74s] Running ‘lgm.R’ [69s/82s] Running ‘lgmRaster.R’ [0m/29m] 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.80 > > 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/lgmRaster.R’ failed. Complete output: > #+ setup > library('geostatsp') Loading required package: Matrix Loading required package: terra terra 1.8.80 > #' > > #' # 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 Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 2.0.8
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘RandomFields’ Package which this enhances but not available for checking: ‘INLA’ Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Version: 2.0.8
Check: package dependencies
Result: NOTE Package suggested but not available for checking: 'RandomFields' Flavor: r-oldrel-windows-x86_64

Version: 2.0.8
Check: examples
Result: ERROR Running examples in 'geostatsp-Ex.R' failed The error most likely occurred in: > ### Name: simLgcp > ### Title: Simulate a log-Gaussian Cox process > ### Aliases: simLgcp simPoissonPP > > ### ** Examples > > mymodel = c(mean=-0.5, variance=1, + range=2, shape=2) > > myraster = rast(nrows=15,ncols=20,xmin=0,xmax=10,ymin=0,ymax=7.5) > > # some covariates, deliberately with a different resolution than myraster > covA = covB = myoffset = rast(ext(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) > > myLgcp=simLgcp(param=mymodel, + covariates=myCovariate, + betas=c(a=-0.1, b=0.25), + offset='offsetFooBar', + rasterTemplate=myraster) Warning: PROJ: proj_create: no database context specified (GDAL error 1) Warning: PROJ: proj_create: no database context specified (GDAL error 1) Warning: PROJ: proj_create: no database context specified (GDAL error 1) Flavor: r-oldrel-windows-x86_64

Version: 2.0.8
Check: tests
Result: ERROR Running 'RFsimulate.R' [11s] Running 'krige.R' [10s] Running 'lgcp.R' [9s] Running 'lgm.R' [33s] Running 'lgmRaster.R' [74s] Running 'likfitLgm.R' [11s] Running 'matern.R' [9s] Running 'maternGmrfPrec.R' [12s] Running 'profLlgm.R' [13s] Running 'simLgcp.R' [7s] Running 'stackRasterList.R' [7s] Running the tests in 'tests/matern.R' failed. Complete output: > library("geostatsp") Loading required package: Matrix Loading required package: terra terra 1.8.86 > > param = c(range=1, shape=1.5, anisoRatio=2, anisoAngleDegrees=-25) > > matern(c(0, 0.001, 100000), param=param) [1] 1.000000 0.999994 0.000000 attr(,"param") range shape variance nugget 1.0000000 1.5000000 1.0000000 0.0000000 anisoRatio anisoAngleRadians anisoAngleDegrees 2.0000000 -0.4363323 -25.0000000 > > #x=c(0, 0.001, 100000);param=c(param, variance=1) > > #resultFull = .C("matern", as.double(x), as.integer(length(x)), > # as.double(param["range"]), as.double(param["shape"]), > # as.double(param["variance"])) > > > # example with raster > myraster = rast(nrows=40,ncols=60,xmin=-3,xmax=3,ymin=-2,ymax=2) > > # plot correlation of each cell with the origin > myMatern = matern(myraster, y=c(0,0), param=param) > myMatern[1:3,1:3] lyr.1 1 0.002385719 2 0.003084067 3 0.003973211 4 0.002349589 5 0.003047536 6 0.003940191 7 0.002302637 8 0.002996124 9 0.003886871 > > > > bob = function(x) { + thepar = attributes(x)$param + pdf(tempfile("matern", tmpdir=".", fileext=".pdf")) + plot(x, main= + paste( + paste(names(thepar), thepar, sep="="), + collapse=", "),cex.main=0.5 + ) + dev.off() + } > > bob(myMatern) null device 1 > > > bob(matern(myraster, y=c(1,-0.5), + param = c(range=1, shape=1.5, anisoRatio=2, anisoAngleDegrees=25) + ) + ) null device 1 > > bob(matern(myraster,y= c(0,0), + param = c(range=1, shape=25.1, anisoRatio=2, anisoAngleDegrees=-25) + ) + ) null device 1 > > bob(matern(myraster,y= c(0,0), + param = c(range=0, shape=1.5, anisoRatio=2, anisoAngleDegrees=-25) + ) + ) null device 1 > > bob(matern(myraster, y=c(0,0), + param = c(range=100000, shape=1.5, anisoRatio=2, anisoAngleDegrees=-25) + ) + ) null device 1 > > > > > > # correlation matrix for all cells with each other > myraster = rast(nrows=4,ncols=6,xmin=-3,xmax=3,ymin=-2,ymax=2) > myMatern = matern(myraster, param=c(range=0, shape=2)) > > dim(myMatern) [1] 24 24 > myMatern[1:3,1:3] 3 x 3 Matrix of class "dsyMatrix" [,1] [,2] [,3] [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1 > > param = c(range=0.2, shape=1.5) > set.seed(0) > > mypoints = vect(cbind(runif(10), runif(10)), + crs = "epsg:2000", + atts=data.frame(id=1:10)) Warning messages: 1: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1) 2: [crs<-] Cannot set SRS to vector: empty srs > > myDist = forceSymmetric(as.matrix(distance(mypoints))) Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'forceSymmetric': error in evaluating the argument 'x' in selecting a method for function 'as.matrix': [distance] crs not defined Calls: forceSymmetric ... distance -> distance -> .local -> messages -> error Execution halted Running the tests in 'tests/simLgcp.R' failed. Complete output: > > if(requireNamespace("INLA", quietly=TRUE) ) { + INLA::inla.setOption(num.threads=2) + # not all versions of INLA support blas.num.threads + try(INLA::inla.setOption(blas.num.threads=2), silent=TRUE) + } > > library('geostatsp') Loading required package: Matrix Loading required package: terra terra 1.8.86 > > # exclude this line to use the RandomFields package > options(useRandomFields = FALSE) > > mymodel = c(mean=-1.5, variance=1, + range=2, shape=2) > > myraster = rast(nrows=15,ncols=15,xmin=0,xmax=10,ymin=0,ymax=10) > > # some covariates, deliberately with a different resolution than myraster > covA = covB = myoffset = rast(ext(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) Flavor: r-oldrel-windows-x86_64

Package mapmisc

Current CRAN status: ERROR: 1, OK: 12

Version: 2.1.0
Check: whether package can be installed
Result: ERROR Installation failed. Flavor: r-oldrel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.