Last updated on 2022-08-15 08:50:19 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
bcdata | 13 | ||
bcmaps | 2 | 11 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 2, NOTE: 11
Version: 1.0.2
Check: LazyData
Result: NOTE
'LazyData' is specified without a 'data' directory
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 1.0.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [24s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(bcmaps)
Loading required package: sf
Linking to GEOS 3.9.0, GDAL 3.4.3, PROJ 7.2.1; sf_use_s2() is TRUE
>
> test_check("bcmaps")
[ FAIL 4 | WARN 0 | SKIP 17 | PASS 82 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (17)
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure (test-get_poly_attribute.R:17:5): works with numbers ────────────────
get_poly_attribute(unioned_spdf$union_df, "a", sum) not equivalent to c(1, 2, 3).
3/3 mismatches (average diff: 1.33)
[1] 2 - 1 == 1
[2] 3 - 2 == 1
[3] 1 - 3 == -2
── Failure (test-get_poly_attribute.R:21:5): works with factors ────────────────
get_poly_attribute(unioned_spdf$union_df, "c", max) not equal to factor(...).
2 string mismatches
── Failure (test-self_union.R:33:5): works with SpatialPolygons ────────────────
self_union(spp)@data not equal to `spp_out_data`.
Attributes: < Component "row.names": Modes: numeric, character >
Attributes: < Component "row.names": target is numeric, current is character >
Component "union_count": Mean relative difference: 0.6666667
Component "union_ids": names for current but not for target
Component "union_ids": Component 1: Mean relative difference: 0.5
Component "union_ids": Component 2: Numeric: lengths (2, 1) differ
Component "union_ids": Component 3: Numeric: lengths (1, 2) differ
── Failure (test-self_union.R:39:5): works with SpatialPolygonsDataFrame ───────
self_union(spdf)@data not equal to `spdf_out_data`.
Attributes: < Component "row.names": Modes: numeric, character >
Attributes: < Component "row.names": target is numeric, current is character >
Component "union_count": Mean relative difference: 0.6666667
Component "union_ids": names for current but not for target
Component "union_ids": Component 1: Mean relative difference: 0.5
Component "union_ids": Component 2: Numeric: lengths (2, 1) differ
Component "union_ids": Component 3: Numeric: lengths (1, 2) differ
Component "union_df": names for current but not for target
Component "union_df": Component 1: Attributes: < Component "row.names": Mean relative difference: 0.5 >
...
[ FAIL 4 | WARN 0 | SKIP 17 | PASS 82 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [25s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(bcmaps)
Loading required package: sf
Linking to GEOS 3.9.0, GDAL 3.4.3, PROJ 7.2.1; sf_use_s2() is TRUE
>
> test_check("bcmaps")
[ FAIL 4 | WARN 0 | SKIP 17 | PASS 82 ]
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (17)
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure (test-get_poly_attribute.R:17:5): works with numbers ────────────────
get_poly_attribute(unioned_spdf$union_df, "a", sum) not equivalent to c(1, 2, 3).
3/3 mismatches (average diff: 1.33)
[1] 2 - 1 == 1
[2] 3 - 2 == 1
[3] 1 - 3 == -2
── Failure (test-get_poly_attribute.R:21:5): works with factors ────────────────
get_poly_attribute(unioned_spdf$union_df, "c", max) not equal to factor(...).
2 string mismatches
── Failure (test-self_union.R:33:5): works with SpatialPolygons ────────────────
self_union(spp)@data not equal to `spp_out_data`.
Attributes: < Component "row.names": Modes: numeric, character >
Attributes: < Component "row.names": target is numeric, current is character >
Component "union_count": Mean relative difference: 0.6666667
Component "union_ids": names for current but not for target
Component "union_ids": Component 1: Mean relative difference: 0.5
Component "union_ids": Component 2: Numeric: lengths (2, 1) differ
Component "union_ids": Component 3: Numeric: lengths (1, 2) differ
── Failure (test-self_union.R:39:5): works with SpatialPolygonsDataFrame ───────
self_union(spdf)@data not equal to `spdf_out_data`.
Attributes: < Component "row.names": Modes: numeric, character >
Attributes: < Component "row.names": target is numeric, current is character >
Component "union_count": Mean relative difference: 0.6666667
Component "union_ids": names for current but not for target
Component "union_ids": Component 1: Mean relative difference: 0.5
Component "union_ids": Component 2: Numeric: lengths (2, 1) differ
Component "union_ids": Component 3: Numeric: lengths (1, 2) differ
Component "union_df": names for current but not for target
Component "union_df": Component 1: Attributes: < Component "row.names": Mean relative difference: 0.5 >
...
[ FAIL 4 | WARN 0 | SKIP 17 | PASS 82 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc