gdistance: Distances and Routes on Geographical Grids

Provides classes and functions to calculate various distance measures and routes in heterogeneous geographic spaces represented as grids. The package implements measures to model dispersal histories first presented by van Etten and Hijmans (2010) <doi:10.1371/journal.pone.0012060>. Least-cost distances as well as more complex distances based on (constrained) random walks can be calculated. The distances implemented in the package are used in geographical genetics, accessibility indicators, and may also have applications in other fields of geospatial analysis.

Version: 1.3-6
Depends: R (≥ 3.2.0), raster (≥ 1.9-19), methods, igraph (≥ 0.7.0), Matrix
Imports: sp, stats
Suggests: knitr, markdown, rmarkdown, testthat (≥ 2.1.0)
Published: 2020-06-29
Author: Jacob van Etten ORCID iD [aut], KauĂȘ de Sousa ORCID iD [cre, ctb]
Maintainer: KauĂȘ de Sousa <kaue.desousa at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: NEWS
In views: Spatial
CRAN checks: gdistance results


Package source: gdistance_1.3-6.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): gdistance_1.3-6.tgz, r-release (x86_64): gdistance_1.3-6.tgz, r-oldrel: gdistance_1.3-6.tgz
Old sources: gdistance archive

Reverse dependencies:

Reverse depends: ctmcmove, ipdw
Reverse imports: crawl, enerscape, gen3sis, graph4lg, leastcostpath, marmap, memgene, movecost, poems, PopGenReport, red, rWind, samc, spDates, topoDistance
Reverse suggests: actel, dartR, GmAMisc, phylin, secr


Please use the canonical form to link to this page.