RcppAnnoy: 'Rcpp' Bindings for 'Annoy', a Library for Approximate Nearest Neighbors

'Annoy' is a small C++ library for Approximate Nearest Neighbors written for efficient memory usage as well an ability to load from / save to disk. This package provides an R interface by relying on the 'Rcpp' package, exposing the same interface as the original Python wrapper to 'Annoy'. See <https://github.com/spotify/annoy> for more on 'Annoy'. 'Annoy' is released under Version 2.0 of the Apache License. Also included is a small Windows port of 'mmap' which is released under the MIT license.

Package details

AuthorDirk Eddelbuettel [aut, cre] (ORCID: <https://orcid.org/0000-0001-6419-907X>), Erik Bernhardsson [aut] (Principal author of Annoy)
MaintainerDirk Eddelbuettel <edd@debian.org>
LicenseGPL (>= 2)
Version0.0.23
URL https://github.com/eddelbuettel/rcppannoy https://dirk.eddelbuettel.com/code/rcpp.annoy.html
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("RcppAnnoy")

Try the RcppAnnoy package in your browser

Any scripts or data that you put into this service are public.

RcppAnnoy documentation built on Jan. 12, 2026, 5:07 p.m.