Skip to content

Distance

2.0.1

Distance Sampling Detection Function and Abundance Estimation

4packages depend
25.9Kdownloads / year
74.7%test coverage
11/13checks pass

Overview

About
Maintained by Laura MarshallFirst published 2012-04-0227 releasesCRAN page ↗GitHub ↗

A simple way of fitting detection functions to distance sampling data for both line and point transects. Adjustment term selection, left and right truncation as well as monotonicity constraints and binning are supported. Abundance and density estimates can also be calculated (via a Horvitz-Thompson-like estimator) if survey area information is provided. See Miller et al. (2019) doi:10.18637/jss.v089.i01 for more information on methods and https://distancesampling.org/resources/vignettes.html for example analyses.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 4.5 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.51
74.7%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • NOTE2026-07-11
    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
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
29%
Documented parameters
99%
Return-value docs
63%
References docs
31%

Downloads

25.9K
CRAN downloads in the past year
Rank #3,212 · ~71/day · ~2.2K/mo
Daily download trend is not available in this view yet.
1.3K30 days
3.6K90 days
25.9K1 year
Compare downloads with other packages →
Also on165 r2u21 autocran57 c2d4u

Repository

Repository
14Stars
10Forks
24Open issues
0Open PRs
10Releases
840Commits
8Contributors
License GPL-3.0 · 840 commits · Last activity 2025-10-17 · 0% stars, 30d

Stars over time

2025-07-22 · 122026-07-07 · 14

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/distancedevelopment/distance on 2026-08-16.

Continuous integration (1)
GitHub Actions
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)
Depends (2)
R >= 4.1.0mrds
Imports (4)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Maintainer · added in 2.0.0
Authors (2)
Author · added in 1.0.7
Author · added in 2.0.0
Contributors (2)
Contributor · added in 2.0.0
Contributor · added in 2.0.0
Reviewers (1)
Reviewer · added in 2.0.0
Listed in earlier versions (2)
no longer listed · 0.6 to 0.8.0
no longer listed · 0.9 to 1.0.9
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.1Latest
    2025-07-11 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.0
    2024-10-24 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.9
    2023-12-21 · diff ↗
  • 1.0.8
    2023-07-17 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.7
    2022-11-15 · diff ↗
  • 1.0.6
    2022-08-21 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.5
    2022-03-17 · diff ↗
  • 1.0.4
    2021-08-12 · diff ↗
  • 1.0.3
    2021-07-02 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.2
    2020-12-01 · diff ↗
Show 26 earlier events
  • 1.0.1
    2020-07-31 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.0
    2020-01-31 · diff ↗
  • 0.9.8
    2019-05-01 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.9.7
    2017-07-04 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.9.6
    2016-08-10 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 0.9.4
    2015-07-29 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 0.9.3
    2015-02-05 · diff ↗
  • 0.9.2
    2014-09-16 · diff ↗
  • 0.9.1
    2014-06-11 · diff ↗
  • 0.9
    2014-04-22 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 0.8.0
    2014-01-09 · diff ↗
  • 0.7.3
    2013-08-19 · diff ↗
  • 0.7.2
    2013-07-04 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 0.7.1
    2012-11-08 · diff ↗
  • 0.6.2
    2012-09-14 · diff ↗
  • 0.6.1
    2012-08-01 · diff ↗
  • 0.6
    2012-04-02
  • R
    R 2.15.0 released · 2012-03-30

Package metadata

First published
2012-04-02
Total releases
27 / 14 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 4.1.0
Bundled data
78 KB / 22 files
Download size
242 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("Distance")
Marshall, L., Clark-Wolf, T. J., Laake, J., Miller, D., Rexstad, E., & Thomas, L. (2025). Distance: Distance Sampling Detection Function and Abundance Estimation (Version 2.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.Distance

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for Distance version 2.0.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

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