Last updated on 2025-08-30 09:50:24 CEST.
Package | ERROR | OK |
---|---|---|
mapi | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 1.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [81s/113s]
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.662, system: 0.079, elapsed: 2.460 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.121, system: 0.256, elapsed: 13.376 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.187, system: 0.018, elapsed: 0.273 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.967, system: 0.291, elapsed: 6.095 seconds]
Computing values for grid cells...
... done. [user: 0.170, system: 0.007, elapsed: 0.234 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 15.657, system: 0.681, elapsed: 23.269 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.536, system: 0.047, elapsed: 2.269 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.904, system: 0.109, elapsed: 10.870 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.185, system: 0.018, elapsed: 0.269 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.879, system: 0.273, elapsed: 5.610 seconds]
Computing values for grid cells...
... done. [user: 0.163, system: 0.007, elapsed: 0.191 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 15.204, system: 0.481, elapsed: 19.989 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.749, system: 0.089, elapsed: 2.746 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.144, system: 0.286, elapsed: 11.896 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.185, system: 0.014, elapsed: 0.254 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.802, system: 0.241, elapsed: 6.048 seconds]
Computing values for grid cells...
... done. [user: 0.161, system: 0.004, elapsed: 0.262 seconds]
Starting 4 permutations...
... parallelized over 2 cores ...
1 2 4 3
... computing probabilities from permuted values ...
... done. [user: 1.131, system: 0.204, elapsed: 1.203 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 16.807, system: 0.874, elapsed: 23.421 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.435, system: 0.028, elapsed: 2.454 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.902, system: 0.054, elapsed: 13.443 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.186, system: 0.012, elapsed: 0.287 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.649, system: 0.170, elapsed: 5.770 seconds]
Computing values for grid cells...
... done. [user: 0.163, system: 0.003, elapsed: 0.239 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: 10.134, system: 0.444, elapsed: 15.950 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 25.112, system: 0.740, elapsed: 39.213 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
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-MAPI_Varicell.R:15:5'): MAPI_Varicell ────────────────────────
sd(sf::st_area(grid.var)) (`actual`) not equal to 963339.563502512 (`expected`).
`actual`: 963429.6
`expected`: 963339.6
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
Error: Test failures
Execution halted
Flavor: r-release-macos-x86_64
Version: 1.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [78s/115s]
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.578, system: 0.052, elapsed: 2.283 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.002, system: 0.118, elapsed: 13.257 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.185, system: 0.015, elapsed: 0.284 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.581, system: 0.188, elapsed: 5.424 seconds]
Computing values for grid cells...
... done. [user: 0.160, system: 0.004, elapsed: 0.233 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 15.048, system: 0.396, elapsed: 22.273 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.485, system: 0.027, elapsed: 2.214 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.904, system: 0.064, elapsed: 12.835 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.184, system: 0.011, elapsed: 0.257 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.535, system: 0.149, elapsed: 5.229 seconds]
Computing values for grid cells...
... done. [user: 0.167, system: 0.005, elapsed: 0.234 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 14.799, system: 0.280, elapsed: 21.533 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.547, system: 0.032, elapsed: 3.018 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.949, system: 0.131, elapsed: 13.363 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.184, system: 0.014, elapsed: 0.311 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.575, system: 0.202, elapsed: 6.486 seconds]
Computing values for grid cells...
... done. [user: 0.173, system: 0.014, elapsed: 0.325 seconds]
Starting 4 permutations...
... parallelized over 2 cores ...
1 2 3 4
... computing probabilities from permuted values ...
... done. [user: 1.055, system: 0.255, elapsed: 1.302 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 16.098, system: 0.683, elapsed: 25.865 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.594, system: 0.066, elapsed: 2.695 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.035, system: 0.116, elapsed: 13.190 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.184, system: 0.011, elapsed: 0.280 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.550, system: 0.159, elapsed: 5.703 seconds]
Computing values for grid cells...
... done. [user: 0.162, system: 0.004, elapsed: 0.277 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: 9.895, system: 0.415, elapsed: 15.215 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 25.043, system: 0.800, elapsed: 38.302 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
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-MAPI_Varicell.R:15:5'): MAPI_Varicell ────────────────────────
sd(sf::st_area(grid.var)) (`actual`) not equal to 963339.563502512 (`expected`).
`actual`: 963429.6
`expected`: 963339.6
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-macos-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.