Package check result: OK Changes to worse in reverse depends: Package: phylospatial Check: tests New result: ERROR Running ‘testthat.R’ [56s/78s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(phylospatial) > > test_check("phylospatial") `phylospatial` object - 18 lineages across 400 sites - community data type: probability - spatial data class: SpatRaster - dissimilarity data: none Community data type detected: probability Community data type detected: probability Community data type detected: probability Community data type detected: probability Raster data has no CRS, so can't check that cells are equal-area; it will be assumed that they are. Community data type detected: probability Loading required namespace: canaper Community data type detected: abundance Loading required namespace: furrr Raster data has no CRS, so can't check that cells are equal-area; it will be assumed that they are. Community data type detected: probability [ FAIL 2 | WARN 1 | SKIP 1 | PASS 79 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-ps_diversity.R:3:7' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-ps_diversity.R:64:7'): diversity measures match `adiv::evodiv()` and `hillR::hill_phylo()` for abundance data ── scl(div$SiPD) (`actual`) not equal to scl(h$Simpson) (`expected`). actual | expected [1] 0.3671 - 0.3523 [1] [2] 0.3187 - 0.3027 [2] [3] 0.3159 - 0.2998 [3] [4] 0.2536 - 0.2361 [4] [5] 0.2314 - 0.2133 [5] [6] 0.1609 - 0.1412 [6] [7] 0.1282 - 0.1077 [7] [8] 0.0797 - 0.0582 [8] [9] 0.0405 - 0.0179 [9] [10] 0.0000 - NA [10] ... ... ... and 390 more ... ── Failure ('test-ps_diversity.R:66:7'): diversity measures match `adiv::evodiv()` and `hillR::hill_phylo()` for abundance data ── scl(div$ShPD) (`actual`) not equal to scl(log(h$Shannon)) (`expected`). actual | expected [1] 0.697969 - 0.653257 [1] [2] 0.669709 - 0.620814 [2] [3] 0.667879 - 0.618714 [3] [4] 0.622129 - 0.566191 [4] [5] 0.602401 - 0.543542 [5] [6] 0.522460 - 0.451767 [6] [7] 0.471908 - 0.393732 [7] [8] 0.369859 - 0.276575 [8] [9] 0.244260 - 0.132383 [9] [10] 0.000000 - NA [10] ... ... ... and 390 more ... [ FAIL 2 | WARN 1 | SKIP 1 | PASS 79 ] Error: Test failures Execution halted