Skip to content

RANN

2.6.2

Fast Nearest Neighbour Search (Wraps ANN Library) Using L2 Metric

99packages depend
718.8Kdownloads / year
52.6%test coverage
8/13checks pass

Overview

About
Maintained by Gregory JefferisFirst published 2013-07-247 releasesCRAN page ↗GitHub ↗

Finds the k nearest neighbours for every point in a given dataset in O(N log N) time using Arya and Mount's ANN library (v1.1.3). There is support for approximate as well as exact searches, fixed radius searches and 'bd' as well as 'kd' trees. The distance is computed using the L2 (Euclidean) metric. Please see package 'RANN.L1' for the same functionality using the L1 (Manhattan, taxicab) metric.

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 2.2 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.96
52.6%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • NOTE2026-07-16
    10 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 146 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
88%
Return-value docs
100%
References docs
50%

Downloads

718.8K
CRAN downloads in the past year
Rank #464 · ~2K/day · ~59.9K/mo
Daily download trend is not available in this view yet.
54.5K30 days
174.3K90 days
718.8K1 year
Compare downloads with other packages →
Also on13.9K r2u118 autocran130.8K conda_forge312 bioconda80 c2d4u

Repository

Repository
64Stars
11Forks
4Open issues
0Open PRs
5Releases
197Commits
7Contributors
nearest-neighboursann-libraryrr-packagenearest-neighbors
197 commits · Last activity 2026-08-05 · 0% stars, 30d

Stars over time

2025-07-18 · 612026-07-07 · 64

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/jefferislab/rann on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none

Code & Tests

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Author, Copyright holder
Author, Copyright holder · added in 2.6.2
Contributors (1)
Contributor
Copyright holders (3)
Author, Copyright holder
Author, Copyright holder · added in 2.6.2
Copyright holder · added in 2.6.2
Listed in earlier versions (3)
no longer listed · 2.3.0 to 2.6.1
no longer listed · 2.6.2
no longer listed · 2.6.2
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.6.2Latest
    2024-08-25 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 2.6.1
    2019-01-08 · diff ↗
  • 2.6
    2018-07-16 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.5.1
    2017-05-21 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 2.5
    2015-04-20 · diff ↗
Show 6 earlier events
  • R
    R 3.2.0 released · 2015-04-16
  • 2.4.1
    2014-07-21 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 2.3.0
    2013-07-24
  • removedRemoved from CRAN
    2013-07-21
    misrepresentation of authorship
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2013-07-24
Total releases
7 / 13 yrs
License
GPL (>= 3) OSI
Download size
58 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("RANN")
Jefferis, G., University of Maryland, Arya, S., Kemp, S. E., Mount, D., & Müller, K. (2024). RANN: Fast Nearest Neighbour Search (Wraps ANN Library) Using L2 Metric (Version 2.6.2) [Computer software]. https://doi.org/10.32614/CRAN.package.RANN

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 RANN version 2.6.2 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, 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