Given the names of packages published on CRAN, return the output of checks that return notes, warnings or errors.
cran_details(pkg, src = c("website", "crandb"), ...) # S3 method for cran_details summary(object, show_log = TRUE, print_ok = TRUE, ...) summary_cran_details( pkg, src = c("website", "crandb"), show_log = TRUE, print_ok = TRUE, ... )
character vector of the names for the packages on CRAN
additional arguments to control where the data from the check results are coming from and how they are downloaded from the CRAN servers (see Details section).
an object created by
Should the messages of the “Check Details” be printed? (logical)
tibble listing the names of the packages that have non- OK
check results, the nature of the result (
NOTE, or other issues).
Where does the data come from?
The data comes from the CRAN servers. They generate RDS files that contains information regarding the results of the checks for all the packages, and all the flavors. This data is then used to generate the web pages.
foghorn provides access to either of these data sources. If
src = "website" the data is scrapped from the
CRAN website. If you only need to check a few packages, this is a
good option. If you choose
src = "crandb" the RDS files
(about 20Mb) are downloaded first from the CRAN servers.
src = "crandb" you can also specify the
dest a folder where to store the RDS files (
https (default) or
FALSE (default), if the file exists in
dest then it will not be downloaded again. When
TRUE the file gets downloaded every time it's
TRUE (default), a bar will be
displayed to show the download progress (requires the
... additional arguments that will be passed to
GET function to control how
the file will be downloaded.
Note that the
tools package contains unexported
functions that can be used to extract summary information from
the check results. Specifically
tools:::sumarize_CRAN_check_status is similar to