The goal of the R package snakedist is to compute distance between pair of points (survey locations) along a linear shape (e.g. a river, a road, etc.). Note that this package works even if the points are not exactly on the line.

This package has been developed for the FRB-CESAB project Bridge and it’s related to the R package chessboard.


You can install the development version from GitHub with:

# install.packages("remotes")

Then you can attach the package snakedist:


Please read the Get started vignette.


Please cite this package as:

Casajus Nicolas (2023) snakedist: An R package to compute distances along a linear shape. R package version 1.0.

Code of Conduct

Please note that the snakedist project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.