Last updated on 2025-11-28 09:51:05 CET.
| Package | ERROR | OK |
|---|---|---|
| mapi | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 1.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [99s/306s]
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.832, system: 0.125, elapsed: 10.418 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 10.138, system: 0.449, elapsed: 36.647 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.205, system: 0.031, elapsed: 0.681 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.456, system: 0.445, elapsed: 16.370 seconds]
Computing values for grid cells...
... done. [user: 0.193, system: 0.013, elapsed: 0.606 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 17.568, system: 1.566, elapsed: 68.945 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.864, system: 0.139, elapsed: 4.859 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 10.354, system: 0.583, elapsed: 30.709 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.225, system: 0.051, elapsed: 0.837 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.629, system: 0.636, elapsed: 12.766 seconds]
Computing values for grid cells...
... done. [user: 0.192, system: 0.016, elapsed: 0.321 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 17.991, system: 1.879, elapsed: 52.611 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.084, system: 0.195, elapsed: 6.431 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 10.265, system: 0.491, elapsed: 36.655 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.212, system: 0.039, elapsed: 1.012 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.559, system: 0.562, elapsed: 15.650 seconds]
Computing values for grid cells...
... done. [user: 0.185, system: 0.009, elapsed: 0.536 seconds]
Starting 4 permutations...
... parallelized over 2 cores ...
1 2 3 4
... computing probabilities from permuted values ...
... done. [user: 1.332, system: 0.380, elapsed: 2.880 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 19.469, system: 2.099, elapsed: 67.130 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.701, system: 0.075, elapsed: 4.460 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 10.077, system: 0.345, elapsed: 23.472 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.222, system: 0.035, elapsed: 0.718 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.363, system: 0.408, elapsed: 10.188 seconds]
Computing values for grid cells...
... done. [user: 0.202, system: 0.022, elapsed: 1.907 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.180, system: 1.406, elapsed: 49.498 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 29.551, system: 2.565, elapsed: 94.048 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
Flavor: r-release-macos-x86_64
Version: 1.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [92s/244s]
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.780, system: 0.111, elapsed: 6.299 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 10.257, system: 0.593, elapsed: 31.620 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.201, system: 0.035, elapsed: 0.562 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.260, system: 0.492, elapsed: 16.149 seconds]
Computing values for grid cells...
... done. [user: 0.200, system: 0.016, elapsed: 0.595 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 17.410, system: 1.720, elapsed: 58.828 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.065, system: 0.173, elapsed: 5.697 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.779, system: 0.304, elapsed: 27.757 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.195, system: 0.029, elapsed: 0.436 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.111, system: 0.341, elapsed: 10.783 seconds]
Computing values for grid cells...
... done. [user: 0.170, system: 0.010, elapsed: 0.410 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 16.986, system: 1.224, elapsed: 47.142 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.727, system: 0.082, elapsed: 5.794 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.886, system: 0.216, elapsed: 27.640 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.202, system: 0.032, elapsed: 0.536 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.933, system: 0.310, elapsed: 9.535 seconds]
Computing values for grid cells...
... done. [user: 0.173, system: 0.007, elapsed: 0.314 seconds]
Starting 4 permutations...
... parallelized over 2 cores ...
1 2 3 4
... computing probabilities from permuted values ...
... done. [user: 1.115, system: 0.303, elapsed: 1.424 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 17.793, system: 1.283, elapsed: 47.824 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.690, system: 0.058, elapsed: 3.629 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.745, system: 0.184, elapsed: 21.905 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.212, system: 0.034, elapsed: 0.694 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 4.014, system: 0.304, elapsed: 8.916 seconds]
Computing values for grid cells...
... done. [user: 0.169, system: 0.005, elapsed: 0.294 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: 11.342, system: 0.979, elapsed: 32.977 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 27.929, system: 1.628, elapsed: 70.280 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
Flavor: r-oldrel-macos-x86_64