Learn R Programming

The package computes shortest paths between points in grids. It can take barriers and custom transition functions into account. Apart from applications regarding planet Earth, spaths can compute shortest paths generally on spheres and planes. The package is optimized for computational performance, customizability, and user friendliness. It comes with its own graph-theoretical implementation tailored to gridded data.

Install the package via devtools::install_github("cdueben/spaths", build_vignettes = T) and consult the vignette with vignette("spaths_introduction", "spaths") for an introduction.

Extensions to this package are certainly welcome. You can either suggest modifications to spaths by sending me an email or submitting a pull request, or you can build a package that calls spaths.

Copy Link

Version

Install

install.packages('spaths')

Monthly Downloads

301

Version

1.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Christian Düben

Last Published

April 4th, 2025

Functions in spaths (1.2.0)

rnd_locations

Random location drawing
shortest_paths

Shortest paths and/ or distances between locations
max_edges

Maximum number of edges in your grid