Description
Mapping Averaged Pairwise Information (MAPI) is an exploratory method providing graphical representations summarizing the spatial variation of pairwise metrics (eg. distance, similarity coefficient, ...) computed between georeferenced samples.
Downloads
344
Last 30 days
9320th
344
Last 90 days
344
Last year
CRAN Check Status
2
ERROR
12
OK
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | ERROR |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | ERROR |
| r-release-windows-x86_64 | OK |
Check details (14 non-OK)
OK
r-devel-linux-x86_64-debian-clang
*
OK
r-devel-linux-x86_64-debian-gcc
*
OK
r-devel-linux-x86_64-fedora-clang
*
OK
r-devel-linux-x86_64-fedora-gcc
*
OK
r-devel-macos-arm64
*
OK
r-devel-windows-x86_64
*
OK
r-oldrel-macos-arm64
*
ERROR
r-oldrel-macos-x86_64
tests
Running ‘testthat.R’ [100s/422s]
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.13.0, 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.559, system: 0.041, elapsed: 2.051 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.576, system: 0.053, elapsed: 13.076 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.216, system: 0.018, elapsed: 1.033 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.734, system: 0.735, elapsed: 61.998 seconds]
Computing values for grid cells...
... done. [user: 0.173, system: 0.003, elapsed: 0.208 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 18.835, system: 0.872, elapsed: 79.151 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.650, system: 0.034, elapsed: 2.513 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.588, system: 0.083, elapsed: 14.554 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.220, system: 0.016, elapsed: 0.822 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.779, system: 0.856, elapsed: 132.288 seconds]
Computing values for grid cells...
... done. [user: 0.161, system: 0.003, elapsed: 0.171 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 18.969, system: 1.011, elapsed: 151.175 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.608, system: 0.038, elapsed: 2.927 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.410, system: 0.054, elapsed: 13.264 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.214, system: 0.015, elapsed: 1.082 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.600, system: 0.719, elapsed: 56.619 seconds]
Computing values for grid cells...
... done. [user: 0.170, system: 0.006, elapsed: 0.177 seconds]
Starting 4 permutations...
... parallelized over 2 cores ...
1 2 3 4
... computing probabilities from permuted values ...
... done. [user: 1.234, system: 0.324, elapsed: 1.028 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 19.892, system: 1.182, elapsed: 76.001 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.583, system: 0.036, elapsed: 1.686 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.663, system: 0.072, elapsed: 12.074 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.212, system: 0.015, elapsed: 0.853 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.773, system: 0.770, elapsed: 77.230 seconds]
Computing values for grid cells...
... done. [user: 0.168, system: 0.003, elapsed: 0.172 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: 13.367, system: 0.795, elapsed: 16.353 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 32.439, system: 1.723, elapsed: 109.129 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
OK
r-oldrel-windows-x86_64
*
OK
r-patched-linux-x86_64
*
OK
r-release-linux-x86_64
*
OK
r-release-macos-arm64
*
ERROR
r-release-macos-x86_64
tests
Running ‘testthat.R’ [110s/333s]
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.13.0, 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.539, system: 0.039, elapsed: 1.772 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.657, system: 0.068, elapsed: 13.442 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.217, system: 0.019, elapsed: 0.753 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.999, system: 0.756, elapsed: 52.957 seconds]
Computing values for grid cells...
... done. [user: 0.169, system: 0.004, elapsed: 0.176 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 19.177, system: 0.912, elapsed: 69.816 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.499, system: 0.037, elapsed: 1.757 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.667, system: 0.053, elapsed: 12.024 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.223, system: 0.018, elapsed: 0.704 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.883, system: 0.754, elapsed: 76.806 seconds]
Computing values for grid cells...
... done. [user: 0.167, system: 0.002, elapsed: 0.192 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 19.001, system: 0.882, elapsed: 92.099 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.563, system: 0.035, elapsed: 2.664 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.604, system: 0.073, elapsed: 17.844 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.313, system: 0.017, elapsed: 1.381 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 6.827, system: 0.802, elapsed: 94.400 seconds]
Computing values for grid cells...
... done. [user: 0.171, system: 0.008, elapsed: 0.220 seconds]
Starting 4 permutations...
... parallelized over 2 cores ...
1 2 3 4
... computing probabilities from permuted values ...
... done. [user: 1.280, system: 0.285, elapsed: 1.179 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 20.419, system: 1.254, elapsed: 118.841 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.624, system: 0.062, elapsed: 2.655 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.755, system: 0.140, elapsed: 13.591 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.208, system: 0.015, elapsed: 0.280 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 7.930, system: 0.842, elapsed: 17.544 seconds]
Computing values for grid cells...
... done. [user: 0.178, system: 0.004, elapsed: 0.175 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: 19.665, system: 1.602, elapsed: 11.139 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 40.263, system: 2.717, elapsed: 46.365 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
OK
r-release-windows-x86_64
*
Check History
ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 9, 2026
ERROR
r-release-macos-x86_64
tests
Running ‘testthat.R’ [110s/333s] 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) > librar
ERROR
r-oldrel-macos-x86_64
tests
Running ‘testthat.R’ [100s/422s] 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) > librar
Dependency Network
Version History
new
1.1.4
Mar 9, 2026