## load the package
library(foghorn)
foghorn
provides a graphical summary for CRAN check results for the packages maintained by individuals (the number is parentheses indicates the number of R flavors used by CRAN that generate notes, warnings, errors):
## Graphical interface
summary_cran_results(email = "francois.michonneau@gmail.com")
## ✖ Package with errors on CRAN:
## - foghorn (11)
## ⚠ Packages with warnings on CRAN:
## - rncl (3)
## - rotl (1)
## ★ Package with notes on CRAN:
## - rncl (6)
The information can also be summarized as a table:
## Summary as a tibble
check_cran_results(email = "francois.michonneau@gmail.com")
## # A tibble: 5 x 7
## Package ERROR FAIL WARN NOTE OK has_other_issues
## <chr> <int> <int> <int> <int> <int> <lgl>
## 1 foghorn 11 NA NA NA 2 FALSE
## 2 phylobase NA NA NA NA 13 FALSE
## 3 riceware NA NA NA NA 13 FALSE
## 4 rncl NA NA 3 6 4 FALSE
## 5 rotl NA NA 1 NA 12 FALSE
In addition of your own packages, you can also check the results for other packages that might be of interest to you:
## either by themselves
summary_cran_results(pkg = c("ggplot2", "dplyr"))
## ✖ Packages with errors on CRAN:
## - dplyr (11)
## - ggplot2 (2)
## ⚠ Package with warnings on CRAN:
## - dplyr (1)
## ★ Packages with notes on CRAN:
## - dplyr (1)
## - ggplot2 (4)
## ◉ Package with other issues on CRAN:
## - dplyr
check_cran_results(pkg = c("ggplot2", "dplyr"))
## # A tibble: 2 x 7
## Package ERROR FAIL WARN NOTE OK has_other_issues
## <chr> <int> <int> <int> <int> <int> <lgl>
## 1 dplyr 11 NA 1 1 NA TRUE
## 2 ggplot2 2 NA NA 4 7 FALSE
## or by combining them with email addresses
summary_cran_results(email = "francois.michonneau@gmail.com",
pkg = c("mregions", "ridigbio"))
## ✖ Package with errors on CRAN:
## - foghorn (11)
## ⚠ Packages with warnings on CRAN:
## - rncl (3)
## - rotl (1)
## ★ Packages with notes on CRAN:
## - mregions (2)
## - rncl (6)
check_cran_results(email = "francois.michonneau@gmail.com",
pkg = c("mregions", "ridigbio"))
## # A tibble: 7 x 7
## Package ERROR FAIL WARN NOTE OK has_other_issues
## <chr> <int> <int> <int> <int> <int> <lgl>
## 1 mregions NA NA NA 2 11 FALSE
## 2 ridigbio NA NA NA NA 13 FALSE
## 3 foghorn 11 NA NA NA 2 FALSE
## 4 phylobase NA NA NA NA 13 FALSE
## 5 riceware NA NA NA NA 13 FALSE
## 6 rncl NA NA 3 6 4 FALSE
## 7 rotl NA NA 1 NA 12 FALSE
You can also inspect the logs for the check results using show_cran_results(pkg)
, while visit_cran_check(pkg)
takes you to the CRAN webpage.
show_cran_results(pkg = "tidyr")
## ★ tidyr - NOTE: data for non-ASCII characters
## ❯ r-devel-linux-x86_64-fedora-clang
## ❯ r-devel-linux-x86_64-fedora-gcc
## ❯ r-patched-solaris-x86
##
## Note: found 23 marked UTF-8 strings
##
## ★ tidyr - NOTE: data for non-ASCII characters
## ❯ r-patched-solaris-sparc
## ❯ r-release-osx-x86_64
## ❯ r-oldrel-osx-x86_64
##
## Note: found 23 marked UTF-8 strings
The data from the CRAN check results used by this package are either scrapped from the CRAN web pages (default), or are from the CRAN database. The first option is faster if you want to check regularly a few packages. However, if you are doing statistics on a large number of packages, using the CRAN database is recommended. To use the CRAN database, add src = "crandb"
in your function calls:
check_cran_results(pkg = "nlme", src = "crandb")
## # A tibble: 1 x 7
## Package ERROR FAIL WARN NOTE OK has_other_issues
## <chr> <int> <int> <int> <int> <int> <lgl>
## 1 nlme 1 NA NA NA 12 FALSE
Check out the “Details” section in the help files for more information.
Feel free to submit feedback and suggestions by opening an issue on GitHub.