Last updated on 2025-07-01 15:50:28 CEST.
Package | ERROR | OK |
---|---|---|
mapi | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 1.1.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [61s/88s]
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.433, system: 0.033, elapsed: 2.069 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.902, system: 0.059, elapsed: 12.228 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.188, system: 0.014, elapsed: 0.328 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.715, system: 0.180, elapsed: 5.703 seconds]
Computing values for grid cells...
... done. [user: 0.162, system: 0.003, elapsed: 0.251 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 14.944, system: 0.310, elapsed: 21.376 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.460, system: 0.031, elapsed: 2.139 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.978, system: 0.111, elapsed: 13.610 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.195, system: 0.018, elapsed: 0.317 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.736, system: 0.212, elapsed: 5.961 seconds]
Computing values for grid cells...
... done. [user: 0.169, system: 0.006, elapsed: 0.277 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 15.069, system: 0.399, elapsed: 23.132 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.543, system: 0.051, elapsed: 2.390 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.901, system: 0.115, elapsed: 13.102 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.188, system: 0.010, elapsed: 0.205 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.653, system: 0.160, elapsed: 4.711 seconds]
Computing values for grid cells...
... done. [user: 0.161, system: 0.002, elapsed: 0.236 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.940, system: 0.431, elapsed: 15.390 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 25.004, system: 0.792, elapsed: 36.911 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 18 ]
══ 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 18 ]
Error: Test failures
Execution halted
Flavor: r-release-macos-x86_64
Version: 1.1.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [61s/108s]
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.523, system: 0.043, elapsed: 2.261 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 8.965, system: 0.072, elapsed: 13.332 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.190, system: 0.014, elapsed: 0.317 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.560, system: 0.180, elapsed: 5.470 seconds]
Computing values for grid cells...
... done. [user: 0.154, system: 0.003, elapsed: 0.212 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 14.917, system: 0.332, elapsed: 22.375 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.530, system: 0.046, elapsed: 2.114 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.026, system: 0.128, elapsed: 23.085 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.187, system: 0.016, elapsed: 0.586 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.637, system: 0.200, elapsed: 10.338 seconds]
Computing values for grid cells...
... done. [user: 0.154, system: 0.004, elapsed: 0.362 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 15.057, system: 0.414, elapsed: 37.763 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.604, system: 0.044, elapsed: 3.994 seconds]
Computing spatial intersection between 1071 grid cells and 20100 ellipses...
... done. [user: 9.083, system: 0.067, elapsed: 16.915 seconds]
Building sample pairs...
... 39800 sample pairs. [user: 0.187, system: 0.011, elapsed: 0.276 seconds]
Matching grid cells with sample pairs...
... 2295394 matches found. [user: 3.595, system: 0.162, elapsed: 5.177 seconds]
Computing values for grid cells...
... done. [user: 0.158, system: 0.004, elapsed: 0.235 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.965, system: 0.457, elapsed: 14.051 seconds]
MAPI COMPUTATION ENDED. [TOTAL: user: 25.230, system: 0.772, elapsed: 41.887 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 18 ]
══ 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 18 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-macos-x86_64