The main pkgmatch
functions, pkgmatch_similar_pkgs and
pkgmatch_similar_fns, return data.frame
objects of class
"pkgmatch". This class exists primarily to enable this print method, which
summarises by default the top 5 matching packages or functions. Objects can
be converted to standard data.frame
s with as.data.frame()
.
Usage
# S3 method for class 'pkgmatch'
print(x, ...)
Value
The result of printing x
, in form of either a single character
vector, or a named list of character vectors.
See also
Other utils:
generate_pkgmatch_example_data()
,
head.pkgmatch()
,
pkgmatch_browse()
,
pkgmatch_load_data()
,
pkgmatch_update_cache()
,
text_is_code()
Examples
if (FALSE) { # \dontrun{
input <- "Download open spatial data from NASA"
p <- pkgmatch_similar_pkgs (input)
p # Default print method, lists 5 best matching packages
head (p) # Shows first 5 rows of full `data.frame` object
} # }