Skip to content

mapi

Mapping Averaged Pairwise Information

v1.1.4 · Jul 3, 2025 · GPL (>= 3)

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

280

Last 30 days

14945th

894

Last 90 days

3.7K

Last year

Trend: -20.9% (30d vs prior 30d)

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 (2 non-OK)
ERROR r-oldrel-macos-x86_64

tests

Running ‘testthat.R’ [97s/373s]
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): 
...[truncated]...
         
    |================================================================================| 100%
  ... computing probabilities from permuted values ...
  ... done.  [user: 11.492, system: 0.604, elapsed: 20.498 seconds]
  MAPI COMPUTATION ENDED.  [TOTAL: user: 30.157, system: 1.559, elapsed: 132.538 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
ERROR r-release-macos-x86_64

tests

Running ‘testthat.R’ [101s/353s]
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):
...[truncated]...
          
    |================================================================================| 100%
  ... computing probabilities from permuted values ...
  ... done.  [user: 14.018, system: 0.863, elapsed: 14.298 seconds]
  MAPI COMPUTATION ENDED.  [TOTAL: user: 32.870, system: 1.764, elapsed: 56.653 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

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 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 additiona
...[truncated]...
cell ────────────────────────
  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
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 additiona
...[truncated]...
cell ────────────────────────
  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

Dependency Network

Dependencies Reverse dependencies data.table doParallel fmesher foreach Rcpp s2 sf mapi

Version History

new 1.1.4 Mar 10, 2026
updated 1.1.4 ← 1.1.3 diff Jul 2, 2025
updated 1.1.3 ← 1.0.5 diff Jun 26, 2025
updated 1.0.5 ← 1.0.4 diff Jan 18, 2022
updated 1.0.4 ← 1.0.3 diff Nov 23, 2021
updated 1.0.3 ← 1.0.1 diff Oct 30, 2021
updated 1.0.1 ← 1.0.0-62 diff Oct 21, 2019
new 1.0.0-62 Oct 29, 2018