Skip to contents

Main functions

pkgmatch_similar_fns()
Identify R functions best matching a given input string
pkgmatch_similar_pkgs()
Find R packages matching an input of either text or another package

BM25 functions

pkgmatch_bm25()
The "Best Matching 25" (BM25) ranking function.
pkgmatch_bm25_fn_calls()
The "Best Matching 25" (BM25) ranking function for function calls

Embeddings functions

pkgmatch_embeddings_from_pkgs()
Return raw embeddings from package text and function definitions.
pkgmatch_embeddings_from_text()
Return raw embeddings from a vector of text strings.

Treesitter functions

pkgmatch_treesitter_fn_tags()
Identify all function calls make within a package.

Ollama functions

get_ollama_url()
Get the URL for local ollama API
ollama_check()
Check ollama installation
set_ollama_url()
Set the URL for local ollama API

Utility functions

generate_pkgmatch_example_data()
Generate example data to use with pkgmatch
head(<pkgmatch>)
Head method for 'pkgmatch' objects
pkgmatch_browse()
Open web pages for pkgmatch results
pkgmatch_load_data()
Load 'pkgmatch' data for specified corpus.
pkgmatch_update_cache()
Update all locally-cached pkgmatch data to latest versions.
print(<pkgmatch>)
Print method for 'pkgmatch' objects
text_is_code()
Estimate whether input text is code or English prose text.

Data update functions

pkgmatch_update_data()
Update pkgmatch corpus data on GitHub