Skip to content

centerline

Extract Centerline from Closed Polygons

v0.2.5 · Dec 22, 2025 · MIT + file LICENSE

Description

Generates skeletons of closed 2D polygons using Voronoi diagrams. It provides methods for 'sf', 'terra', and 'geos' objects to compute polygon centerlines based on the generated skeletons. Voronoi, G. (1908) <doi:10.1515/crll.1908.134.198>.

Downloads

674

Last 30 days

5566th

1.8K

Last 90 days

5.4K

Last year

Trend: +3.9% (30d vs prior 30d)

CRAN Check Status

1 ERROR
2 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 ERROR
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 NOTE
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [25s]
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(centerline)
  > 
  > test_check("centerline")
NOTE r-oldrel-macos-arm64

dependencies in R code

2025-12-23 08:16:27.782 R[53542:379205] XType: Using static font registry.
NOTE r-release-macos-arm64

dependencies in R code

2025-12-23 03:34:32.370 R[1391:746976] XType: Using static font registry.

Check History

ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 31, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [26s]
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
...[truncated]...
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(centerline)
  > 
  > test_check("centerline")
NOTE r-release-macos-arm64

dependencies in R code

2025-12-23 03:34:32.370 R[1391:746976] XType: Using static font registry.
NOTE r-oldrel-macos-arm64

dependencies in R code

2025-12-23 08:16:27.782 R[53542:379205] XType: Using static font registry.
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-release-macos-arm64

dependencies in R code

2025-12-23 03:34:32.370 R[1391:746976] XType: Using static font registry.
NOTE r-oldrel-macos-arm64

dependencies in R code

2025-12-23 08:16:27.782 R[53542:379205] XType: Using static font registry.

Dependency Network

Dependencies Reverse dependencies wk sf geos sfnetworks (>= 0.6) checkmate centerline

Version History

new 0.2.5 Mar 10, 2026
updated 0.2.5 ← 0.2.4 diff Dec 21, 2025
updated 0.2.4 ← 0.2.2 diff Sep 8, 2025
updated 0.2.2 ← 0.1 diff Mar 15, 2025
new 0.1 Sep 25, 2024