• using R version 4.5.2 Patched (2026-01-31 r89382)
  • using platform: x86_64-apple-darwin20
  • R was compiled by     Apple clang version 14.0.0 (clang-1400.0.29.202)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Ventura 13.3.1
  • using session charset: UTF-8
  • 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 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 ‘mapi’ can be installed ... [10s/10s] OK See the install log for details.
  • used C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
  • used SDK: ‘MacOSX11.3.1.sdk’
  • 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/0s] OK
  • checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
  • checking whether the package can be unloaded cleanly ... [0s/0s] OK
  • checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
  • checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
  • checking loading without being on the library search path ... [0s/0s] 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 ... [3s/3s] OK
  • checking Rd files ... [0s/0s] 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 ... [0s/0s] OK
  • checking LazyData ... OK
  • checking data for ASCII and uncompressed saves ... OK
  • checking line endings in C/C++/Fortran sources/headers ... OK
  • checking compiled code ... OK
  • checking examples ... [1s/2s] OK
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [103s/209s] ERROR   Running ‘testthat.R’ [103s/209s] 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   Linking to GEOS 3.14.1, GDAL 3.8.5, PROJ 9.5.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.721, system: 0.073, elapsed: 1.847 seconds]   Computing spatial intersection between 1071 grid cells and 20100 ellipses...   ... done. [user: 9.317, system: 0.141, elapsed: 10.611 seconds]   Building sample pairs...   ... 39800 sample pairs. [user: 0.366, system: 0.034, elapsed: 0.239 seconds]   Matching grid cells with sample pairs...   ... 2295394 matches found. [user: 9.132, system: 0.966, elapsed: 7.639 seconds]   Computing values for grid cells...   ... done. [user: 0.179, system: 0.006, elapsed: 0.216 seconds]   MAPI COMPUTATION ENDED. [TOTAL: user: 21.493, system: 1.260, elapsed: 21.178 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.626, system: 0.056, elapsed: 1.800 seconds]   Computing spatial intersection between 1071 grid cells and 20100 ellipses...   ... done. [user: 9.489, system: 0.110, elapsed: 10.604 seconds]   Building sample pairs...   ... 39800 sample pairs. [user: 0.212, system: 0.014, elapsed: 0.353 seconds]   Matching grid cells with sample pairs...   ... 2295394 matches found. [user: 6.811, system: 0.685, elapsed: 28.127 seconds]   Computing values for grid cells...   ... done. [user: 0.174, system: 0.003, elapsed: 0.181 seconds]   MAPI COMPUTATION ENDED. [TOTAL: user: 18.977, system: 0.906, elapsed: 41.720 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.589, system: 0.040, elapsed: 2.069 seconds]   Computing spatial intersection between 1071 grid cells and 20100 ellipses...   ... done. [user: 9.583, system: 0.062, elapsed: 23.094 seconds]   Building sample pairs...   ... 39800 sample pairs. [user: 0.320, system: 0.019, elapsed: 1.449 seconds]   Matching grid cells with sample pairs...   ... 2295394 matches found. [user: 7.020, system: 0.728, elapsed: 57.800 seconds]   Computing values for grid cells...   ... done. [user: 0.179, system: 0.003, elapsed: 0.211 seconds]   Starting 4 permutations...   ... parallelized over 2 cores ...   1 2 4 3   ... computing probabilities from permuted values ...   ... done. [user: 1.275, system: 0.296, elapsed: 1.038 seconds]   MAPI COMPUTATION ENDED. [TOTAL: user: 20.660, system: 1.174, elapsed: 86.698 seconds]   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.799, system: 0.044, elapsed: 2.036 seconds]   Computing spatial intersection between 1071 grid cells and 20100 ellipses...   ... done. [user: 9.693, system: 0.079, elapsed: 12.669 seconds]   Building sample pairs...   ... 39800 sample pairs. [user: 0.223, system: 0.017, elapsed: 0.933 seconds]   Matching grid cells with sample pairs...   ... 2295394 matches found. [user: 6.822, system: 0.691, elapsed: 16.136 seconds]   Computing values for grid cells...   ... done. [user: 0.174, system: 0.003, elapsed: 0.184 seconds]   Starting 50 permutations...   ... serially ...        |     | | 0%     |     |== | 2%     |     |=== | 4%     |     |===== | 6%     |     |====== | 8%     |     |======== | 10%     |     |========== | 12%     |     |=========== | 14%     |     |============= | 16%     |     |============== | 18%     |     |================ | 20%     |     |================== | 22%     |     |=================== | 24%     |     |===================== | 26%     |     |====================== | 28%     |     |======================== | 30%     |     |========================== | 32%     |     |=========================== | 34%     |     |============================= | 36%     |     |============================== | 38%     |     |================================ | 40%     |     |================================== | 42%     |     |=================================== | 44%     |     |===================================== | 46%     |     |====================================== | 48%     |     |======================================== | 50%     |     |========================================== | 52%     |     |=========================================== | 54%     |     |============================================= | 56%     |     |============================================== | 58%     |     |================================================ | 60%     |     |================================================== | 62%     |     |=================================================== | 64%     |     |===================================================== | 66%     |     |====================================================== | 68%     |     |======================================================== | 70%     |     |========================================================== | 72%     |     |=========================================================== | 74%     |     |============================================================= | 76%     |     |============================================================== | 78%     |     |================================================================ | 80%     |     |================================================================== | 82%     |     |=================================================================== | 84%     |     |===================================================================== | 86%     |     |====================================================================== | 88%     |     |======================================================================== | 90%     |     |========================================================================== | 92%     |     |=========================================================================== | 94%     |     |============================================================================= | 96%     |     |============================================================================== | 98%     |     |================================================================================| 100%   ... computing probabilities from permuted values ...   ... done. [user: 12.072, system: 0.656, elapsed: 19.555 seconds]   MAPI COMPUTATION ENDED. [TOTAL: user: 31.625, system: 1.523, elapsed: 52.292 seconds]   Significant areas aggregation, with percentile filter minQ > 0.000000 and alpha = 0.050000 ...   ... 1 upper-tail and 3 lower-tail significant areas returned   Building local cartesian grid...   ... 1045 cells   Saving _problems/test-MAPI_Varicell-15.R   [ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]      ══ Failed tests ════════════════════════════════════════════════════════════════   ── Failure ('test-MAPI_Varicell.R:15:5'): MAPI_Varicell ────────────────────────   Expected `sd(sf::st_area(grid.var))` to equal 963339.563502512.   Differences:     `actual`: 963429.6   `expected`: 963339.6         [ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]   Error:   ! Test failures.   Execution halted
  • checking PDF version of manual ... [12s/15s] OK
  • DONE Status: 1 ERROR
  • using check arguments '--no-clean-on-error '