CRAN Package Check Results for Package stplanr

Last updated on 2024-07-22 16:57:27 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2.1 10.89 120.92 131.81 OK
r-devel-linux-x86_64-debian-gcc 1.2.1 7.79 90.33 98.12 OK
r-devel-linux-x86_64-fedora-clang 1.2.1 153.80 ERROR
r-devel-linux-x86_64-fedora-gcc 1.2.1 174.76 ERROR
r-devel-windows-x86_64 1.2.1 11.00 132.00 143.00 OK
r-patched-linux-x86_64 1.2.1 11.70 114.54 126.24 OK
r-release-linux-x86_64 1.2.1 8.60 113.55 122.15 OK
r-release-macos-arm64 1.2.1 78.00 OK
r-release-macos-x86_64 1.2.1 105.00 OK
r-release-windows-x86_64 1.2.1 10.00 132.00 142.00 OK
r-oldrel-macos-arm64 1.2.1 75.00 OK
r-oldrel-macos-x86_64 1.2.1 155.00 OK
r-oldrel-windows-x86_64 1.2.1 13.00 154.00 167.00 OK

Check Details

Version: 1.2.1
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘rsgeo’ Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.2.1
Check: examples
Result: ERROR Running examples in ‘stplanr-Ex.R’ failed The error most likely occurred in: > ### Name: line_segment > ### Title: Divide an sf object with LINESTRING geometry into regular > ### segments > ### Aliases: line_segment > > ### ** Examples > > library(sf) Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.1; sf_use_s2() is TRUE > l <- routes_fast_sf[2:4, "ID"] > l_seg_multi <- line_segment(l, segment_length = 1000, use_rsgeo = FALSE) > l_seg_n <- line_segment(l, n_segments = 2) Setting n_segments to 2 for all lines Warning in use_rsgeo(l) : rsgeo not installed, using lwgeom > l_seg_n <- line_segment(l, n_segments = c(1:3)) Warning in use_rsgeo(l) : rsgeo not installed, using lwgeom > # Number of subsegments > table(l_seg_multi$ID) 3 4 5 3 3 2 > plot(l_seg_multi["ID"]) > plot(l_seg_multi$geometry, col = seq_along(l_seg_multi), lwd = 5) > round(st_length(l_seg_multi)) Units: [m] [1] 1013 1014 955 875 770 647 986 881 > # rsgeo implementation (default if available): > if (rlang::is_installed("rsgeo")) { + rsmulti = line_segment(l, segment_length = 1000, use_rsgeo = TRUE) + plot(rsmulti["ID"]) + } > # Check they have the same total length, to nearest mm: > # round(sum(st_length(l_seg_multi)), 3) == round(sum(st_length(rsmulti)), 3) > # With n_segments for 1 line: > l_seg_multi_n <- line_segment(l[1, ], n_segments = 3, use_rsgeo = FALSE) > l_seg_multi_n <- line_segment(l$geometry[1], n_segments = 3, use_rsgeo = FALSE) > l_seg_multi_n <- line_segment(l$geometry[1], n_segments = 3, use_rsgeo = TRUE) Error in loadNamespace(x) : there is no package called ‘rsgeo’ Calls: line_segment ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc