Identify R functions best matching a given input string
Source:R/similar-fns.R
pkgmatch_similar_fns.Rd
Function matching is only available for functions from the corpus of rOpenSci packages.
Arguments
- input
A text string.
- embeddings
Large Language Model embeddings for all rOpenSci packages, generated from pkgmatch_embeddings_from_pkgs. If not provided, pre-generated embeddings will be downloaded and stored in a local cache directory.
- n
When the result of this function is printed to screen, the top
n
packages will be displayed.- browse
If
TRUE
, automatically open webpages of the topn
matches in local browser.
See also
Other main:
pkgmatch_similar_pkgs()
Examples
if (FALSE) { # \dontrun{
input <- "Process raster satellite images"
p <- pkgmatch_similar_fns (input)
p # Default print method, lists 5 best matching packages
head (p) # Shows first 5 rows of full `data.frame` object
} # }