* using log directory 'd:/Rcompile/CRANpkg/local/4.7/mapi.Rcheck' * using R Under development (unstable) (2026-04-27 r89967 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-04-28 16:02:59 UTC * checking for file 'mapi/DESCRIPTION' ... OK * this is package 'mapi' version '1.1.4' * 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 'mapi' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 14.3.0' * checking installed package size ... OK * checking package 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [0s] 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 ... [4s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [2s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [74s] ERROR Running 'testthat.R' [74s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(mapi) > > test_check("mapi") Checking data... `metric` provided as a vector Unique names ... OK All samples used in metric ... OK ... 200 samples and 39800 metric left. Estimated halfwidth: 286.835888 Estimated halfwidth: 143.417944 Attaching package: 'data.table' The following object is masked from 'package:base': %notin% Linking to GEOS 3.14.1, GDAL 3.12.1, PROJ 9.7.1; sf_use_s2() is TRUE Building local cartesian grid... ... 1071 cells Building worldwide lat/lon grid... Resolution: 5, Area (km^2): 209903.548034604, Spacing (km): 452.492014449456, CLS (km): 517.004996903084 ... 2432 cells Building local cartesian grid... ... 1071 cells MAPI COMPUTATION STARTED Checking data... `metric` provided as a vector Unique names ... OK All samples used in metric ... OK ... 200 samples and 39800 metric left. Building 20100 elliptical polygons... ... 20100 ellipses. [user: 1.950, system: 0.040, elapsed: 2.000 seconds] Computing spatial intersection between 1071 grid cells and 20100 ellipses... ... done. [user: 11.910, system: 0.040, elapsed: 11.950 seconds] Building sample pairs... ... 39800 sample pairs. [user: 0.250, system: 0.000, elapsed: 0.250 seconds] Matching grid cells with sample pairs... ... 2295394 matches found. [user: 6.280, system: 1.060, elapsed: 7.310 seconds] Computing values for grid cells... ... done. [user: 0.180, system: 0.000, elapsed: 0.180 seconds] MAPI COMPUTATION ENDED. [TOTAL: user: 21.440, system: 1.170, elapsed: 22.600 seconds] MAPI COMPUTATION STARTED Checking data... `metric` provided as a vector Unique names ... OK All samples used in metric ... OK ... 200 samples and 39800 metric left. Building 20100 elliptical polygons... ... 20100 ellipses. [user: 1.970, system: 0.110, elapsed: 2.060 seconds] Computing spatial intersection between 1071 grid cells and 20100 ellipses... ... done. [user: 11.820, system: 0.000, elapsed: 11.850 seconds] Building sample pairs... ... 39800 sample pairs. [user: 0.280, system: 0.000, elapsed: 0.280 seconds] Matching grid cells with sample pairs... ... 2295394 matches found. [user: 6.470, system: 0.800, elapsed: 7.180 seconds] Computing values for grid cells... ... done. [user: 0.170, system: 0.000, elapsed: 0.170 seconds] MAPI COMPUTATION ENDED. [TOTAL: user: 21.480, system: 0.930, elapsed: 22.320 seconds] MAPI COMPUTATION STARTED Checking data... `metric` provided as a vector Unique names ... OK All samples used in metric ... OK ... 200 samples and 39800 metric left. Building 20100 elliptical polygons... ... 20100 ellipses. [user: 2.000, system: 0.060, elapsed: 2.060 seconds] Computing spatial intersection between 1071 grid cells and 20100 ellipses... ... done. [user: 11.740, system: 0.030, elapsed: 11.770 seconds] Building sample pairs... ... 39800 sample pairs. [user: 0.210, system: 0.020, elapsed: 0.250 seconds] Matching grid cells with sample pairs... ... 2295394 matches found. [user: 6.590, system: 1.170, elapsed: 7.670 seconds] Computing values for grid cells... ... done. [user: 0.170, system: 0.000, elapsed: 0.180 seconds] Starting 4 permutations... ... parallelized over 2 cores ... ... computing probabilities from permuted values ... ... done. [user: 0.480, system: 0.090, elapsed: 1.800 seconds] MAPI COMPUTATION ENDED. [TOTAL: user: 22.250, system: 1.410, elapsed: 24.800 seconds] Building local cartesian grid... * checking PDF version of manual ... [25s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 1 ERROR