cch_pkgs_history: Get historical check data for packages

View source: R/cch_pkgs_history.R

cch_pkgs_historyR Documentation

Get historical check data for packages

Description

Get historical check data for packages

Usage

cch_pkgs_history(x, limit = 30, offset = 0, ...)

Arguments

x

package name, required, if you pass in more than one we'll do async

limit

number of records to return. Default: 10

offset

record number to start at. Default: 0

...

Curl options passed to crul::HttpClient() or crul::Async()

Details

this function gets historical data; for current day check data only see cch_pkgs()

data is only available for 30 days prior to today's date, see the cch_history() function for older data

Value

list of info about a package(s)

Examples

## Not run: 
x <- cch_pkgs_history(x = "geojsonio")
x
x$data
x$data$package
x$data$history
x$data$history$summary
x$data$history$summary$any
x$data$history$check_details

# many packages
res <- cch_pkgs_history(c("geojsonio", "leaflet", "MASS"))
res

# pagination
cch_pkgs_history(x = "geojsonio", limit = 3)
cch_pkgs_history(x = "geojsonio", limit = 3, offset = 4)

## End(Not run)

ropenscilabs/cchecks documentation built on Sept. 14, 2022, 3:54 a.m.