Skip to content

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

78packages dependsuggested by 26
738.9Kdownloads / year
52.6%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.6.3
  • Replace deprecated special argument names in structure() calls for R-devel.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-26
  • NOTE10 OK, 3 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.6.3
READMEYes · 146 wordsVignettesNoNEWSYes · 100% structured · mentions 2.6.3Citation fileNoWebsiteYes · pkgdown
Help pages
2includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
100%
Documented parameters
88%
Return-value docs
100%
Help pages citing references
50%

Downloads

738.9K
CRAN downloads in the past year
Rank #423 · ~2K/day · ~61.6K/mo
Daily download trend is not available in this view yet.
68K30 days
197.1K90 days
738.9K1 year
Compare downloads with other packages →
Also on28.6K r2u140 autocran165.7K conda_forge309 bioconda945 c2d4u

Repository

66Stars
11Forks
4Open issues
0Open PRs
5Releases
197Commits
7Commit identities
nearest-neighboursann-libraryrr-packagenearest-neighbors
197 commits · Last activity 2026-08-05 · +3.1% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
62%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-07-18 · 612026-09-29 · 66
PracticesBeta

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

Checks run against github.com/jefferislab/rann on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-05 · The repository has a site deploy workflow

pkgdown site last built 2026-08-05, before release 2.6.3 (2026-08-24)

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing RANN adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none

People & History

People (6)
Author, Maintainer since 2.3.0 (2013)
Author, Copyright holder
Author, Copyright holder
Contributor
Copyright holder · added in 2.6.2
ANN library is copyright University of Maryland and Sunil Arya and David Mount. See file COPYRIGHT for details
Listed in earlier versions (1)
Kemp
no longer listed · 2.6.2 to 2.6.3
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.6.3Latest
    record
    2024-08-25 · current release · diff ↗
  • 2.6.2
    record
    2024-08-25 · 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
    record
    2019-01-08 · diff ↗
  • 2.6
    record
    2018-07-16 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.5.1
    record
    2017-05-21 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
Show 7 earlier eventsHide 7 earlier events
  • 2.5
    record
    2015-04-20 · diff ↗ ·
    removed 1 export
    nn
  • R
    R 3.2.0 released · 2015-04-16
  • 2.4.1
    record
    2014-07-21 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 2.3.0
    record
    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
8 / 13 yrs
License
GPL (>= 3) OSI
Download size
59 KB

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. (2026). RANN: Fast Nearest Neighbour Search (Wraps ANN Library) Using L2 Metric (Version 2.6.3) [Computer software]. https://doi.org/10.32614/CRAN.package.RANN

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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.3 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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