View source: R/cch_pkgs_search.R
| cch_pkgs_search | R Documentation |
Search historical package check data
cch_pkgs_search( q, package = NULL, one_each = FALSE, fields = NULL, limit = 30, offset = 0, ... )
q |
(character) full text query string |
package |
(character) a package name. limit results to a single
package, e.g, |
one_each |
(logical) if |
fields |
(character) vector of fields to return, e.g.,
|
limit |
number of records to return. Default: 10 |
offset |
record number to start at. Default: 0 |
... |
Curl options passed to |
list of info about a package(s)
## Not run:
x <- cch_pkgs_search(q = "memory")
x
x$data
x$data$package
x$data
x$data$summary
x$data$summary$any
x$data$check_details
# restrict returned fields
res <- cch_pkgs_search("memory", fields = c("package", "check_details"))
res$data$check_details$output[1]
grepl('memory', res$data$check_details$output[1])
# one each, one record per package
res <- cch_pkgs_search("memory", one_each = TRUE,
fields = c("package", "date_updated"))
res
# pagination
cch_pkgs_search("memory", limit = 3)
cch_pkgs_search("memory", limit = 3, offset = 4)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.