Package: pkgmatch 0.4.2.021

Mark Padgham

pkgmatch: Find R Packages Matching Either Descriptions or Other R Packages

Find R packages matching either descriptions or other R packages.

Authors:Mark Padgham [aut, cre], Davis Vaughan [ctb]

pkgmatch_0.4.2.021.tar.gz
pkgmatch_0.4.2.021.zip(r-4.5)pkgmatch_0.4.2.021.zip(r-4.4)pkgmatch_0.4.2.021.zip(r-4.3)
pkgmatch_0.4.2.021.tgz(r-4.4-x86_64)pkgmatch_0.4.2.021.tgz(r-4.4-arm64)pkgmatch_0.4.2.021.tgz(r-4.3-x86_64)pkgmatch_0.4.2.021.tgz(r-4.3-arm64)
pkgmatch_0.4.2.021.tar.gz(r-4.5-noble)pkgmatch_0.4.2.021.tar.gz(r-4.4-noble)
pkgmatch_0.4.2.021.tgz(r-4.4-emscripten)pkgmatch_0.4.2.021.tgz(r-4.3-emscripten)
pkgmatch.pdf |pkgmatch.html
pkgmatch/json (API)

# Install 'pkgmatch' in R:
install.packages('pkgmatch', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ropensci-review-tools/pkgmatch/issues

Pkgdown:https://docs.ropensci.org

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

cpp

4.92 score 2 stars 14 exports 46 dependencies

Last updated 16 days agofrom:f05026a709 (on main). Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 05 2024
R-4.5-win-x86_64OKDec 05 2024
R-4.5-linux-x86_64OKDec 05 2024
R-4.4-win-x86_64OKDec 05 2024
R-4.4-mac-x86_64OKDec 05 2024
R-4.4-mac-aarch64OKDec 05 2024
R-4.3-win-x86_64OKDec 05 2024
R-4.3-mac-x86_64OKDec 05 2024
R-4.3-mac-aarch64OKDec 05 2024

Exports:get_ollama_urlollama_checkpkgmatch_bm25pkgmatch_bm25_fn_callspkgmatch_browsepkgmatch_embeddings_from_pkgspkgmatch_embeddings_from_textpkgmatch_load_datapkgmatch_similar_fnspkgmatch_similar_pkgspkgmatch_treesitter_fn_tagspkgmatch_update_dataset_ollama_urltext_is_code

Dependencies:askpassbackportsbriocachemcheckmateclicpp11curldplyrfansifastmapfsgenericsgluehttrhttr2jsonlitelifecyclemagrittrmemoisemimeopensslpbapplypillarpkgconfigpurrrR6rappdirsRcpprlangrvestselectrSnowballCstringistringrsystibbletidyrtidyselecttokenizerstreesittertreesitter.rutf8vctrswithrxml2

Before you begin: ollama installation

Rendered fromollama.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-12-05
Started: 2024-10-25

Data caching and updating

Rendered fromdata-caching-and-updating.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-11-07
Started: 2024-11-07

Good-enough practices for language model packages

Rendered fromgood-enough-practices.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-11-08
Started: 2024-10-28

How does pkgmatch work?

Rendered fromhow-does-it-work.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-11-06
Started: 2024-10-28

The pkgmatch package

Rendered frompkgmatch.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-11-11
Started: 2024-10-10

Why local language models (LMs)?

Rendered fromwhy-local-lms.Rmdusingknitr::rmarkdownon Dec 05 2024.

Last update: 2024-11-06
Started: 2024-11-06

Readme and manuals

Help Manual

Help pageTopics
Get the URL for local ollama APIget_ollama_url
Head method for 'pkgmatch' objectshead.pkgmatch
Check that ollama is installed with required models, and download if not.ollama_check
Calculate the "BM25" = "Best Matching 25" ranking function between text input and all R packages within specified corpus.pkgmatch_bm25
Calculate a "BM25" index from function-call frequencies between a local R package and all packages in specified corpus.pkgmatch_bm25_fn_calls
Open web pages for 'pkgmatch' resultspkgmatch_browse
Return raw language model ('LM') embeddings from package text and function definitions.pkgmatch_embeddings_from_pkgs
Return raw language model ('LM') embeddings from a vector of text strings.pkgmatch_embeddings_from_text
Load embeddings generated by the pkgmatch_embeddings_from_pkgs function, either for all rOpenSci packages or, if 'fns = TRUE', all individual functions within those packages.pkgmatch_load_data
Identify R functions best matching a given input stringpkgmatch_similar_fns
Find R packages matching an input of either text or another packagepkgmatch_similar_pkgs
Use "treesitter" to tag all function calls made within local package, and to associate those calls with package namespaces. This is used as input to the pkgmatch_bm25_fn_calls function.pkgmatch_treesitter_fn_tags
Update pkgmatch` data for both CRAN and rOpenSci packages on GitHub releasepkgmatch_update_data
Print method for 'pkgmatch' objectsprint.pkgmatch
Set the URL for local ollama APIset_ollama_url
Estimate whether input text string is code or English prose text.text_is_code