R Observatory
Search
install.packages("nmslibR")
CRAN 30-day downloads, method
296−14.2% down on the 30 days before, the worse direction
Test coverage, method
0.7%of lines run by tests

A Non-Metric Space Library ('NMSLIB' <https://github.com/nmslib/nmslib>) wrapper, which according to the authors "is an efficient cross-platform similarity search library and a toolkit for evaluation of similarity search methods.

Full description

A Non-Metric Space Library ('NMSLIB' <https://github.com/nmslib/nmslib>) wrapper, which according to the authors "is an efficient cross-platform similarity search library and a toolkit for evaluation of similarity search methods. The goal of the 'NMSLIB' <https://github.com/nmslib/nmslib> Library is to create an effective and comprehensive toolkit for searching in generic non-metric spaces. Being comprehensive is important, because no single method is likely to be sufficient in all cases. Also note that exact solutions are hardly efficient in high dimensions and/or non-metric spaces. Hence, the main focus is on approximate methods". The wrapper also includes Approximate Kernel k-Nearest-Neighbor functions based on the 'NMSLIB' <https://github.com/nmslib/nmslib> 'Python' Library.

Maintainer
Lampros Mouselimis
Latest release
1 Feb 2023
First release
27 Feb 2018

Compare with another package

More details
Releases
8
Needs compilation
Yes
Needs R
>= 3.2.3
Config/reticulate
list( packages = list( list(package = "nmslib", pip = TRUE), list(package = "scipy", pip = TRUE) ) )
Date
2023-02-01
RoxygenNote
7.2.3
SystemRequirements
python3-dev: apt-get install -y python3-dev (deb), python3-pip: apt-get install -y python3-pip (deb), numpy: pip3 install numpy (deb), scipy: pip3 install scipy (deb), nmslib: pip3 install --no-binary :all: nmslib (deb)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("nmslibR")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 nmslibR version 1.0.7 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    1.0.7
    Time taken
    104 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.0.7
    Time taken
    79 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.0.7
    Time taken
    101 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    1.0.7
    Time taken
    75 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    214 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.0.7
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    124 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    168 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    90 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    89 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.0.7
    Time taken
    29 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    101 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.0.7
    Time taken
    133 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
22 Apr 2026OK14000
18 Apr 2026Error13001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 90 days
1,128It is the sum of 2 channels: CRAN and conda-forge. r2u is switched off. autoCRAN was counted over another window, so it is not added.

CRAN rank

14,493 of 26,530

CRAN

834 downloads in the last 90 days

Rank
14,493 of 26,530

It is in the total. Take it out

r2u

47 downloads in the last 90 days

Rank
7,746 of 30,526

It is switched off. Put it back

autoCRAN

3 downloads in the last 30 days

It is not added because it has no figure for the last 90 days. Show the last 30 days

conda-forge

294 downloads in the last 90 days

Rank
2,755 of 3,828

It is in the total. Take it out

Over time

Compare downloads

Needs
8
Dependent packages
0
Suggested by
0
Needs (8)
Installing it adds
15 packages, 7.4 MB of source
Of those, need compilation
10
Optional extras (4)
Functions
18
Public exports
5
Lines of R code
701
Median complexity
2
Functions (18)
Size and composition

Lines by kind (2,415)

KindLinesShare
R code70129%
Tests48420%
Documentation52822%
Guides52022%
Compiled code1828%

Lines by language

LanguageLinesShare
R1,18549%
Rd52822%
Vignettes52022%
C++1567%
C261%

Languages are counted from file extensions.

Files
33
R functions
11
Compiled functions
7
Object systems
R6: 1 classes
Complexity
Median
2
Mean
3.09
Highest
10
Median lines per function
14
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
11
Calls
6
Unconnected
5
Groups
1
Growth (8 releases)
Total lines by release
2,454 on 27 Feb 20182,415 on 1 Feb 2023
Release changes

Coverage was measured, but at least one test failed during the run.

Lines run by tests
0.7%
Expressions run by tests
0.8%
Test cases
19
Exports named in tests
100%
Coverage by file (2)
Coverage run
Lines counted
148
Lines the tests ran
1
Tests passed
No
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
19
Lines of tests
484
Test lines per line of code
0.69
Exports documented
100%
Arguments documented
80%
Return value documented
0%
Help pages with examples
71.4%
Examples run in checks
80%
Guides (1)
Other documentation
README
Yes, 399 words
Release notes file
Yes
Help pages
7
Lines of documentation
528

mlampros / nmslibr on github.com

Stars
12
Forks
4
Open issues
0
Last commit
2 Feb 2023
Activity
Commits
19
Open pull requests
0
Tagged releases
0
Latest tagged release
–
Issues closed in
4 days (median)
Pull requests closed in
–
Pull requests merged
–
Created
27 Feb 2018
Licence file reads as
–
Development practices (9)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow, tic
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityIssue templates
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
Docs sourceGitHub Pages site last deployed 2021-11-17
CoverageCoverage reporting (Codecov)
Reproducibility and dev environmentDockerfile

Method, repository practices

Across mlampros

R releases
  • On CRAN
  • Release
VersionReleasedREvents
1.0.7 current1 Feb 20234.2.2
1.0.611 Sep 20214.1.1
1.0.57 May 20214.0.5Licence: Apache License (>= 2)
1.0.48 Mar 20203.6.3
1.0.321 Jul 20183.5.0
1.0.210 May 20183.5.0
1.0.114 Apr 20183.4.4
1.0.027 Feb 20183.4.3

Relicensed from GPL-3 in version 1.0.5.

Release notes (1.0.7)
  • I've added the *include_query_data_row_index* parameter to the *Knn_Query()* method of the *NMSlib* R6 Class and at the same time I added a deprecation warning for this parameter, because this method currently excludes by default the first output index and value. By setting the *include_query_data_row_index* to TRUE the first output index and value will be returned. This change will take effect in version 1.1.0 and the *Knn_Query()* method will return the first output index and value by default.
  • I added the *"save_data"* parameter to the *"save_Index()"* method and the *"load_data"* parameter to the *"initialize()"* method of the *'NMSlib()'* R6 class. I updated the documentation and references sections as well
  • I've modified the *DESCRIPTION* and the *package.R* file by adding only comments related to a new configuration type in the reticulate R package (see: https://github.com/rstudio/reticulate/issues/883#issuecomment-775552812)
  • I updated the *Makevars* and the .cpp files from C++11 to C++17 because I received the following NOTE during checking of the package: *Specified C++11: please update to current default of C++17*
  • I updated the *.Rbuildignore* file to exclude the *LICENSE.md* file because it gives a NOTE during CRAN checking