Skip to content

Commit

Permalink
Give up on roxygen for NAMESPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmelville committed Sep 17, 2023
1 parent c4e6981 commit 25dde57
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
9 changes: 1 addition & 8 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
# Generated by roxygen2: do not edit by hand

export(HnswCosine)
export(HnswIp)
export(HnswL2)
export(hnsw_build)
export(hnsw_knn)
export(hnsw_search)
exportPattern("^[Hh]nsw")
import(Rcpp)
import(methods)
useDynLib(RcppHNSW, .registration = TRUE)
3 changes: 0 additions & 3 deletions R/hnsw.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
#' Efficient and robust approximate nearest neighbor search using Hierarchical
#' Navigable Small World graphs.
#' *arXiv preprint* *arXiv:1603.09320*.
#' @export
hnsw_knn <- function(X,

Check warning on line 89 in R/hnsw.R

View workflow job for this annotation

GitHub Actions / lint

file=R/hnsw.R,line=89,col=22,[object_name_linter] Variable and function name style should match snake_case or symbols.
k = 10,
distance = "euclidean",
Expand Down Expand Up @@ -180,7 +179,6 @@ hnsw_knn <- function(X,
#' irism <- as.matrix(iris[, -5])
#' ann <- hnsw_build(irism)
#' iris_nn <- hnsw_search(irism, ann, k = 5)
#' @export
hnsw_build <- function(X,

Check warning on line 182 in R/hnsw.R

View workflow job for this annotation

GitHub Actions / lint

file=R/hnsw.R,line=182,col=24,[object_name_linter] Variable and function name style should match snake_case or symbols.
distance = "euclidean",
M = 16,

Check warning on line 184 in R/hnsw.R

View workflow job for this annotation

GitHub Actions / lint

file=R/hnsw.R,line=184,col=24,[object_name_linter] Variable and function name style should match snake_case or symbols.
Expand Down Expand Up @@ -299,7 +297,6 @@ hnsw_build <- function(X,
#' irism <- as.matrix(iris[, -5])
#' ann <- hnsw_build(irism)
#' iris_nn <- hnsw_search(irism, ann, k = 5)
#' @export
hnsw_search <-
function(X,

Check warning on line 301 in R/hnsw.R

View workflow job for this annotation

GitHub Actions / lint

file=R/hnsw.R,line=301,col=12,[object_name_linter] Variable and function name style should match snake_case or symbols.
ann,
Expand Down
6 changes: 0 additions & 6 deletions R/rcpphnsw-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
#' Efficient and robust approximate nearest neighbor search using Hierarchical
#' Navigable Small World graphs.
#' *arXiv preprint* *arXiv:1603.09320*.
#' @useDynLib RcppHNSW, .registration = TRUE
#' @import Rcpp
#' @import methods
#' @export HnswL2
#' @export HnswCosine
#' @export HnswIp
"_PACKAGE"

## ensure module gets loaded
Expand Down

0 comments on commit 25dde57

Please sign in to comment.