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.
Source: R/cache.R
pkgmatch_load_data.Rd
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.
Arguments
- what
One of:
"embeddings" to load pre-generated embeddings;
"idfs" to load pre-generated Inverse Document Frequency weightings;
"functions" to load pre-generated frequency tables for text descriptions of function calls; or
"calls" to load pre-generated frequency tables for actual function calls.
- corpus
If
embeddings
oridfs
parameters are not specified, they are automatically downloaded for the corpus specified by this parameter. Must be one of "ropensci" or "cran". The function will then return the most similar package from the specified corpus.- fns
If
FALSE
(default), load embeddings for all rOpenSci packages; otherwise load (considerably larger dataset of) embeddings for all individual functions.- raw
Only has effect of
what = "calls"
, in which case default ofFALSE
loads single Inverse Document Frequency table to entire corpus; otherwise ifTRUE
, loads raw function call counts for each package in corpus.
See also
Other utils:
head.pkgmatch()
,
pkgmatch_browse()
,
print.pkgmatch()
,
text_is_code()