* using log directory 'd:/Rcompile/CRANpkg/local/4.5/CRTspat.Rcheck' * using R version 4.5.0 (2025-04-11 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'CRTspat/DESCRIPTION' ... OK * this is package 'CRTspat' version '1.3.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'CRTspat' can be installed ... OK * checking installed package size ... OK * 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [10s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [15s] ERROR Running examples in 'CRTspat-Ex.R' failed The error most likely occurred in: > ### Name: compute_mesh > ### Title: Create INLA mesh for spatial analysis > ### Aliases: compute_mesh > > ### ** Examples > > { + # low resolution mesh for test dataset + library(Matrix) + library(sp) + example <- readdata('exampleCRT.txt') + exampleMesh=compute_mesh(example, pixel = 0.5) + } Error: object 'fm_identical_CRS' is not exported by 'namespace:fmesher' Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [27s] ERROR Running 'testthat.R' [27s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(CRTspat) > extdata <- system.file("extdata",package = 'CRTspat') > test_check("CRTspat") (Intercept) armintervention -0.5172565 -0.7004896 (Intercept) armintervention -0.9848534 -0.4920953 [ FAIL 1 | WARN 1 | SKIP 0 | PASS 7 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test9.R:35:3'): Analysis using INLA option gives expected DIC ─────── Error: object 'fm_identical_CRS' is not exported by 'namespace:fmesher' Backtrace: ▆ 1. ├─testthat::expect_equal(get_test9(), 1303) at test9.R:35:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─CRTspat (local) get_test9() 5. │ └─CRTspat::CRTanalysis(...) at test9.R:26:5 6. │ └─CRTspat:::INLAanalysis(analysis, requireMesh = requireMesh, inla_mesh = inla_mesh) 7. └─base::loadNamespace(x) 8. └─base::namespaceImportFrom(...) 9. └─base::importIntoEnv(impenv, impnames, ns, impvars) [ FAIL 1 | WARN 1 | SKIP 0 | PASS 7 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 2 ERRORs