cchecks is a client for the https://cranchecks.info API

Install

remotes::install_github("ropensci/cchecks")

heartbeat

cch_heartbeat()
#> $routes
#>  [1] "/"                               "/docs"                          
#>  [3] "/heartbeat/?"                    "/pkgs"                          
#>  [5] "/pkgs/:name"                     "/maintainers"                   
#>  [7] "/maintainers/:email"             "/badges/:type/:package"         
#>  [9] "/badges/flavor/:flavor/:package" "/pkgs/:name/history"            
#> [11] "/history/:date"                  "/search"                        
#> [13] "/notifications/rules"            "/notifications/rules/:id"

packages

all

cch_pkgs(limit = 1)
#> $found
#> [1] 16617
#> 
#> $count
#> [1] 1
#> 
#> $offset
#> [1] 0
#> 
#> $error
#> NULL
#> 
#> $data
#>   package                                                               url
#> 1 localIV https://cloud.r-project.org/web/checks/check_results_localIV.html
#>               date_updated summary.any summary.ok summary.note summary.warn
#> 1 2020-05-20T00:04:00.609Z       FALSE         12            0            0
#>   summary.error summary.fail
#> 1             0            0
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       checks
#> 1 r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-osx-x86_64, r-release-windows-ix86+x86_64, r-oldrel-osx-x86_64, r-oldrel-windows-ix86+x86_64, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 0.3.0, 2.62, 2.12, 0, 0, 16, 2.72, 0, 1.9, 0, 30, 0, 5, 42.55, 33.16, 0, 0, 53, 42.57, 0, 42.1, 0, 73, 0, 54, 45.17, 35.28, 54.87, 55, 69, 45.29, 82.6, 44, 0, 103, 0, 59, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, OK, https://www.R-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-devel-windows-ix86+x86_64/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-patched-linux-x86_64/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-patched-solaris-x86/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-release-linux-x86_64/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-release-osx-x86_64/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-release-windows-ix86+x86_64/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-oldrel-osx-x86_64/localIV-00check.html, https://www.R-project.org/nosvn/R.check/r-oldrel-windows-ix86+x86_64/localIV-00check.html
#>   check_details
#> 1            NA

by name

x <- cch_pkgs(c("geojsonio", "leaflet", "MASS"))
lapply(x, "[[", c("data", "summary"))
#> [[1]]
#> [[1]]$any
#> [1] TRUE
#> 
#> [[1]]$ok
#> [1] 11
#> 
#> [[1]]$note
#> [1] 1
#> 
#> [[1]]$warn
#> [1] 0
#> 
#> [[1]]$error
#> [1] 0
#> 
#> [[1]]$fail
#> [1] 0
#> 
#> 
#> [[2]]
#> [[2]]$any
#> [1] TRUE
#> 
#> [[2]]$ok
#> [1] 11
#> 
#> [[2]]$note
#> [1] 1
#> 
#> [[2]]$warn
#> [1] 0
#> 
#> [[2]]$error
#> [1] 0
#> 
#> [[2]]$fail
#> [1] 0
#> 
#> 
#> [[3]]
#> [[3]]$any
#> [1] FALSE
#> 
#> [[3]]$ok
#> [1] 12
#> 
#> [[3]]$note
#> [1] 0
#> 
#> [[3]]$warn
#> [1] 0
#> 
#> [[3]]$error
#> [1] 0
#> 
#> [[3]]$fail
#> [1] 0

historical data

x <- cch_pkgs_history(x = "geojsonio")
x$data$history
#> # A tibble: 30 x 4
#>    date_updated summary$any   $ok $note $warn $error $fail checks
#>    <chr>        <lgl>       <int> <int> <int>  <int> <int> <list>
#>  1 2020-05-19T… TRUE           11     1     0      0     0 <df[,…
#>  2 2020-05-18T… TRUE           11     1     0      0     0 <df[,…
#>  3 2020-05-17T… TRUE           11     1     0      0     0 <df[,…
#>  4 2020-05-16T… TRUE           10     1     1      0     0 <df[,…
#>  5 2020-05-15T… TRUE           11     1     0      0     0 <df[,…
#>  6 2020-05-14T… TRUE           11     1     0      0     0 <df[,…
#>  7 2020-05-13T… TRUE           11     1     0      0     0 <df[,…
#>  8 2020-05-12T… TRUE           11     1     0      0     0 <df[,…
#>  9 2020-05-11T… TRUE           11     1     0      0     0 <df[,…
#> 10 2020-05-10T… TRUE           11     1     0      0     0 <df[,…
#> # … with 20 more rows, and 6 more variables: check_details$version <chr>,
#> #   $check <chr>, $result <chr>, $output <chr>, $flavors <list>,
#> #   $additional_issues <list>

search historical data

x <- cch_pkgs_search(q = "memory")
x$data
#> # A tibble: 30 x 5
#>    package date_updated summary$any   $ok $note $warn $error $fail checks
#>    <chr>   <chr>        <lgl>       <int> <int> <int>  <int> <int> <list>
#>  1 tidyft  2020-04-20T… TRUE            9     0     2      0     0 <df[,…
#>  2 tidyft  2020-04-21T… TRUE           10     0     2      0     0 <df[,…
#>  3 tidyft  2020-04-22T… TRUE           10     0     2      0     0 <df[,…
#>  4 tidyft  2020-04-23T… TRUE           10     0     2      0     0 <df[,…
#>  5 tidyft  2020-04-24T… TRUE           10     0     2      0     0 <df[,…
#>  6 tidyft  2020-04-25T… TRUE           10     0     2      0     0 <df[,…
#>  7 tidyft  2020-04-26T… TRUE           10     0     2      0     0 <df[,…
#>  8 tidyft  2020-04-27T… TRUE           10     0     2      0     0 <df[,…
#>  9 tidyft  2020-04-28T… TRUE           10     0     2      0     0 <df[,…
#> 10 tidyft  2020-04-29T… TRUE           10     0     2      0     0 <df[,…
#> # … with 20 more rows, and 6 more variables: check_details$version <chr>,
#> #   $check <chr>, $result <chr>, $output <chr>, $flavors <list>,
#> #   $additional_issues <list>

maintainers

all

cch_maintainers(limit = 1)
#> $found
#> [1] 9450
#> 
#> $count
#> [1] 1
#> 
#> $offset
#> [1] 0
#> 
#> $error
#> NULL
#> 
#> $data
#>                    email             name
#> 1 f.briatte_at_gmail.com François Briatte
#>                                                                                url
#> 1 https://cloud.r-project.org/web/checks/check_results_f.briatte_at_gmail.com.html
#>               date_updated                       table
#> 1 2020-05-20T00:02:21.528Z ggnetwork, TRUE, 7, 5, 0, 0
#>                                                                                             packages
#> 1 ggnetwork, https://cloud.r-project.org/web/checks/check_results_ggnetwork.html, NOTE, OK, 5, 7, NA

by name

cch_maintainers(c("maelle.salmon_at_yahoo.se", "13268259225_at_163.com"))
#> [[1]]
#> [[1]]$error
#> NULL
#> 
#> [[1]]$data
#> [[1]]$data$email
#> [1] "maelle.salmon_at_yahoo.se"
#> 
#> [[1]]$data$name
#> [1] "Maëlle Salmon"
#> 
#> [[1]]$data$url
#> [1] "https://cloud.r-project.org/web/checks/check_results_maelle.salmon_at_yahoo.se.html"
#> 
#> [[1]]$data$date_updated
#> [1] "2020-05-20T00:02:21.579Z"
#> 
#> [[1]]$data$table
#>       package   any ok note warn error
#> 1 monkeylearn  TRUE  7    5    0     0
#> 2    opencage  TRUE  6    6    0     0
#> 3        riem FALSE 12    0    0     0
#> 4     ropenaq FALSE 12    0    0     0
#> 5 rtimicropem  TRUE  7    5    0     0
#> 
#> [[1]]$data$packages
#>       package
#> 1 monkeylearn
#> 2    opencage
#> 3        riem
#> 4     ropenaq
#> 5 rtimicropem
#>                                                                     url
#> 1 https://cloud.r-project.org/web/checks/check_results_monkeylearn.html
#> 2    https://cloud.r-project.org/web/checks/check_results_opencage.html
#> 3        https://cloud.r-project.org/web/checks/check_results_riem.html
#> 4     https://cloud.r-project.org/web/checks/check_results_ropenaq.html
#> 5 https://cloud.r-project.org/web/checks/check_results_rtimicropem.html
#>     check_result version
#> 1 NOTE, OK, 5, 7      NA
#> 2 NOTE, OK, 6, 6      NA
#> 3         OK, 12      NA
#> 4         OK, 12      NA
#> 5 NOTE, OK, 5, 7      NA
#> 
#> 
#> 
#> [[2]]
#> [[2]]$error
#> NULL
#> 
#> [[2]]$data
#> [[2]]$data$email
#> [1] "13268259225_at_163.com"
#> 
#> [[2]]$data$name
#> [1] "Xiao-Ping You"
#> 
#> [[2]]$data$url
#> [1] "https://cloud.r-project.org/web/checks/check_results_13268259225_at_163.com.html"
#> 
#> [[2]]$data$date_updated
#> [1] "2020-05-20T00:02:22.034Z"
#> 
#> [[2]]$data$table
#>   package  any ok note warn error
#> 1    XHWE TRUE  0   12    0     0
#> 
#> [[2]]$data$packages
#>   package                                                            url
#> 1    XHWE https://cloud.r-project.org/web/checks/check_results_XHWE.html
#>   check_result version
#> 1         NULL      NA