cch_history: Get historical check data for all packages by date

View source: R/cch_history.R

cch_historyR Documentation

Get historical check data for all packages by date

Description

Get historical check data for all packages by date

Usage

cch_history(date, ...)

Arguments

date

(character) a date of the form YYYY-MM-DD. required

...

Curl options passed to crul::verb-GET

Details

This function gets historical data for all packages for a single day; see cch_pkgs_history() for last 30 days history for particular packages

You have to do a bit of data wrangling to get this data into a easily sortable/filterable/etc. form

Value

a tibble with columns:

  • package: character vector of package names

  • summary: character vector of JSON hash's of check summary data

  • checks: character vector of JSON hash's of checks performed

  • check_details: character vector of check details. if no check details the string will be "null"; if details given, then a JSON hash of details

  • date_updated: character vector of dates, the date the check was performed on

See Also

cch_pkgs_history()

Examples

## Not run: 
x <- cch_history(date = "2020-04-01")
str(x)
lapply(x$summary[1:3], jsonlite::fromJSON)

## End(Not run)

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