Skip to content

gdistance

1.6.5

Distances and Routes on Geographical Grids

23packages depend
72.6Kdownloads / year
test coverage
12/13checks pass

Overview

About
Maintained by Andrew MarxFirst published 2011-01-0917 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
1NOTE12OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 11.5 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
7
Dependencies · direct
Check history
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
36%

Downloads

72.6K
CRAN downloads in the past year
Rank #2,054 · ~199/day · ~6.1K/mo
Daily download trend is not available in this view yet.
3.7K30 days
11K90 days
72.6K1 year
Compare downloads with other packages →
Also on332 r2u1 autocran3.1K conda_forge79 c2d4u

Repository

Repository
17Stars
6Forks
5Open issues
1Open PRs
0Releases
61Commits
3Contributors
61 commits · Last activity 2025-09-27 · 0% stars, 30d

Stars over time

2025-01-15 · 162026-07-07 · 17

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/agrdatasci/gdistance on 2026-07-31.

Continuous integration (2)
GitHub ActionsTravis CI
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
Governance and community (1)
Issue templates
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (5)
R >= 3.2.0rastermethodsigraphMatrix
Imports (3)
spstatsterra
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Maintainer, Contributor · added in 1.6.2
Authors (1)
Contributors (2)
Maintainer, Contributor · added in 1.6.2
Contributor · added in 1.3-6
Listed in earlier versions (1)
no longer listed · 1.3-0 to 1.3-1
Package Timeline

17 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.6.5Latest
    2025-09-27 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.6.4
    2023-06-19 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.6.2
    2023-04-20 · diff ↗
  • 1.6
    2022-10-10 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.3-6
    2020-06-29 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3-1
    2020-02-29 · diff ↗
  • 1.3-0
    2020-02-19 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.2-2
    2018-05-07 · diff ↗
Show 19 earlier events
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2-1
    2017-02-26 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.1-9
    2015-08-11 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.1-7
    2015-03-11 · diff ↗
  • 1.1-6
    2015-01-07 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.1-5
    2014-02-18 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.1-4
    2012-12-22 · diff ↗
  • 1.1-3
    2012-05-25 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1-2
    2011-09-30 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 1.1-1
    2011-01-09
  • R
    R 2.12.0 released · 2010-10-15

Package metadata

First published
2011-01-09
Total releases
17 / 15 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.2.0
Bundled data
2.7 KB / 2 files
Download size
331 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy